<!doctype html>
<html lang="ru" data-bs-theme="dark">

<head>
    <!-- 2024-05-11 14:13:54 -->
        <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>git add</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" integrity="sha512-dPXYcDub/aeb08c63jRq/k6GaKccl256JQy/AnOq7CAnEZ9FzSL9wSbcZkMp4R26vBsMLFYH4kQ67/bbV8XaCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/7.1.0/css/flag-icons.min.css" integrity="sha512-bZBu2H0+FGFz/stDN/L0k8J0G8qVsAL0ht1qg5kTwtAheiXwiRKyCq1frwfbSFSJN3jooR5kauE0YjtPzhZtJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link href="../../../runebook.css" rel="stylesheet" type="text/css">
    <meta name="x-github" content="https://github.com/runebookdev/runebook">
            <meta name="x-i18n-doc" content="git">
        <script>
        function i18n(element) {
            // NOP
        }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.js" integrity="sha512-F/dia2jKME12jwqiYDayeD+Rr/8jTWUD2wfbuJB0bzSwenSEnXsn4qQ/wVyXUCix5bmCAj8xJdtFr2OqUtjLAw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js" integrity="sha512-7Pi/otdlbbCR+LnW+F7PwFcSDJOuUJB3OxtEHbg4vSMvzvJjde4Po1v4BR9Gdc9aXNUNFVUY+SK51wWT8WF0Gg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/7.8.1/rxjs.umd.min.js" integrity="sha512-D9LDs8YUUVa4V9Gl4Zb+xqRAc7RCzooR3+zzebgK2RMu/KU+dh90pbjEEMzPiSyRSGbSp9j1pZnrO4joGa5WEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity="sha512-mhbv5DqBMgrWL+32MmsDOt/OAvqr/cHimk6B8y/bx/xS88MVkYGPiVv2ixKVrkywF2qHplNRUvFsAHUdxZ3Krg==" crossorigin="anonymous"></script>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6424571640879890" crossorigin="anonymous"></script>    <script async src="https://www.googletagmanager.com/gtag/js?id=G-3G5BZ1QEDP"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'G-3G5BZ1QEDP');
</script>    <script>
(function(c, l, a, r, i, t, y) {
    c[a] = c[a] || function() {
        (c[a].q = c[a].q || []).push(arguments)
    };
    t = l.createElement(r);
    t.async = 1;
    t.src = "https://www.clarity.ms/tag/" + i + "?ref=bwt";
    y = l.getElementsByTagName(r)[0];
    y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jto2hd94r9");
</script>    <script src="../../../theme.js"></script>
</head>

<body>
    <header class="bg-black">
        <div class="container">
            <div class="row">
                <div class="col">
                    <nav class="navbar navbar-expand-lg navbar-dark">
                        <a class="navbar-brand fw-bold" href="https://runebook.dev/ru">
                            <img alt="Runebook.dev" class="d-inline-block align-top mr-1" src="../../../assets/runebook_logo.webp" width="24" height="24">
                            Runebook.dev
                        </a>
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon"></span>
                        </button>
                        <div class="collapse navbar-collapse" id="navbarSupportedContent">
                            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/ru#docs">Documentation</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/contributors">Contributors</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://github.com/runebookdev/runebook/issues">GitHub</a>
                                </li>
                            </ul>
                                                                                                <button class="btn btn-success ms-2" id="showPopupButton">
                                        <i class="bi bi-translate"></i>
                                        Show English
                                    </button>
                                                                                        <div class="form-check form-switch ms-3">
                                <label class="text-light">
                                    <input class="form-check-input" type="checkbox" role="switch" id="theme-switch" checked>
                                    <i class="bi bi-moon-stars-fill"></i>
                                </label>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>

    <!--sse-->
    <div class="container">
    <div class="row">
        <div class="col">
            <nav aria-label="breadcrumb" class="mt-2">
                <ol class="breadcrumb mb-1">
                    <li class="breadcrumb-item">
                        <a href="https://runebook.dev/ru#docs">
                            <span class="fi fi-ru"></span>                            Русский                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <a href="-index-.html">
                            Git                            2.43                        </a>
                    </li>
                                            <li class="breadcrumb-item">
                            <a href="-index-.html#Basic_Snapshotting">
                                Basic Snapshotting                            </a>
                        </li>
                                    </ol>
            </nav>
        </div>
    </div>
    <br>

    <div class="row">
        <div class="col-md-9">
            <main>
                <article>

                    
                    <h1 class="text-body-emphasis" ><span data-i18n="bc23562cc9446d9e7bfb431186bb6741254f1386e2e9215c56661c9c97387daf/92" data-source="git-add" onmousemove="i18n(this)">git-add</span></h1> <h2 class="text-body-emphasis"  id="_name"><span data-i18n="dcd1d5223f73b3a965c07e3ff5dbee3eedcfedb806686a05b9b3868a2c3d6d50/3a" data-source="Name" onmousemove="i18n(this)">Name</span></h2> <div> <p><span data-i18n="c28267d35b257b28e6992680042a66ce1d40d73837012ebbebfc14be6ed77f1b/27" data-source="git-add - Add file contents to the index" onmousemove="i18n(this)">git-add &mdash; &dcy;&ocy;&bcy;&acy;&vcy;&icy;&tcy;&softcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &fcy;&acy;&jcy;&lcy;&acy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;</span></p> </div> <h2 class="text-body-emphasis"  id="_synopsis"><span data-i18n="8eb3755381519d7f0479d75446e56e20084834c0460d7ec94926932372ea6c47/0d" data-source="Synopsis" onmousemove="i18n(this)">Synopsis</span></h2> <div> <div> <pre class="hljs language-less" data-highlighted="yes"><span class="hljs-selector-tag">git</span> <span class="hljs-selector-tag">add</span> <span class="hljs-selector-attr">[--verbose | -v]</span> <span class="hljs-selector-attr">[--dry-run | -n]</span> <span class="hljs-selector-attr">[--force | -f]</span> <span class="hljs-selector-attr">[--interactive | -i]</span> <span class="hljs-selector-attr">[--patch | -p]</span>
          <span class="hljs-selector-attr">[--edit | -e]</span> <span class="hljs-selector-attr">[--[no-]</span><span class="hljs-keyword">all</span> | <span class="hljs-selector-tag">-A</span> | <span class="hljs-selector-tag">--</span><span class="hljs-selector-attr">[no-]</span><span class="hljs-selector-tag">ignore-removal</span> | <span class="hljs-selector-attr">[--update | -u]</span>] <span class="hljs-selector-attr">[--sparse]</span>
          <span class="hljs-selector-attr">[--intent-to-add | -N]</span> <span class="hljs-selector-attr">[--refresh]</span> <span class="hljs-selector-attr">[--ignore-errors]</span> <span class="hljs-selector-attr">[--ignore-missing]</span> <span class="hljs-selector-attr">[--renormalize]</span>
          <span class="hljs-selector-attr">[--chmod=(+|-)x]</span> <span class="hljs-selector-attr">[--pathspec-from-file=&lt;file&gt; [--pathspec-file-nul]</span>]
          <span class="hljs-selector-attr">[--]</span> <span class="hljs-selector-attr">[&lt;pathspec&gt;&hellip;&ZeroWidthSpace;]</span></pre> </div> </div> <h2 class="text-body-emphasis"  id="_description"><span data-i18n="526e0087cc3f254d9f86f6c7d8e23d954c4dfda2b312efc29194ae8a860106ba/d3" data-source="Description" onmousemove="i18n(this)">Description</span></h2> <div> <p><span data-i18n="2588d0fe8ca77fc7eb06f34fb63309347cd816858296eaecd9451c82552d5b8b/70" data-source="This command updates the index using the current content found in the working tree, to prepare the content staged for the next commit. It typically adds the current content of existing paths as a whole, but with some options it can also be used to add content with only part of the changes made to the working tree files applied, or remove paths that do not exist in the working tree anymore." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&tcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yacy; &tcy;&iecy;&kcy;&ucy;&shchcy;&icy;&jcy; &kcy;&ocy;&ncy;&tcy;&iecy;&ncy;&tcy;, &ncy;&acy;&jcy;&dcy;&iecy;&ncy;&ncy;&ycy;&jcy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy;, &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&ocy;&dcy;&gcy;&ocy;&tcy;&ocy;&vcy;&icy;&tcy;&softcy; &kcy;&ocy;&ncy;&tcy;&iecy;&ncy;&tcy; &dcy;&lcy;&yacy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&jcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;. &Ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &ocy;&ncy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&khcy; &pcy;&ucy;&tcy;&iecy;&jcy; &vcy; &tscy;&iecy;&lcy;&ocy;&mcy;, &ncy;&ocy; &scy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&mcy;&icy; &ocy;&pcy;&tscy;&icy;&yacy;&mcy;&icy; &iecy;&gcy;&ocy; &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&gcy;&ocy; &scy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy;&mcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &chcy;&acy;&scy;&tcy;&icy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy;, &vcy;&ncy;&iecy;&scy;&iecy;&ncy;&ncy;&ycy;&khcy; &vcy; &fcy;&acy;&jcy;&lcy;&ycy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy;, &icy;&lcy;&icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&yacy; &pcy;&ucy;&tcy;&iecy;&jcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ncy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&tcy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy;. &bcy;&ocy;&lcy;&softcy;&shcy;&iecy;.</span></p> <p><span data-i18n="e29cbd05b454faee875a9bb73e46d307d2f130f7fd623b07661c1014f06564c9/07" data-source="The &amp;quot;index&amp;quot; holds a snapshot of the content of the working tree, and it is this snapshot that is taken as the contents of the next commit. Thus after making any changes to the working tree, and before running the commit command, you must use the &lt;code&gt;add&lt;/code&gt; command to add any new or modified files to the index." onmousemove="i18n(this)">&quot;index&quot;  &khcy;&rcy;&acy;&ncy;&icy;&tcy; &scy;&ncy;&icy;&mcy;&ocy;&kcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&gcy;&ocy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy;, &icy; &icy;&mcy;&iecy;&ncy;&ncy;&ocy; &ecy;&tcy;&ocy;&tcy; &scy;&ncy;&icy;&mcy;&ocy;&kcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&gcy;&ocy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&gcy;&ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy;. &Tcy;&acy;&kcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;, &pcy;&ocy;&scy;&lcy;&iecy; &vcy;&ncy;&iecy;&scy;&iecy;&ncy;&icy;&yacy; &kcy;&acy;&kcy;&icy;&khcy;-&lcy;&icy;&bcy;&ocy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&iecy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy; &icy; &pcy;&iecy;&rcy;&iecy;&dcy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&ocy;&mcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &vcy;&ycy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ycy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy;  <code>add</code>  &dcy;&lcy;&yacy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; &lcy;&yucy;&bcy;&ycy;&khcy; &ncy;&ocy;&vcy;&ycy;&khcy; &icy;&lcy;&icy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;.</span></p> <p><span data-i18n="1d60f7ce17580e98d178dbb5252cd6de85fac1801bf2e7c11b05aa87fb5dd265/91" data-source="This command can be performed multiple times before a commit. It only adds the content of the specified file(s) at the time the add command is run; if you want subsequent changes included in the next commit, then you must run &lt;code&gt;git add&lt;/code&gt; again to add the new content to the index." onmousemove="i18n(this)">&Ecy;&tcy;&ucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy; &mcy;&ocy;&zhcy;&ncy;&ocy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&softcy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &rcy;&acy;&zcy; &pcy;&iecy;&rcy;&iecy;&dcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&iecy;&jcy;. &Ocy;&ncy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy;&ocy; &vcy;&rcy;&iecy;&mcy;&yacy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;; &iecy;&scy;&lcy;&icy; &vcy;&ycy; &khcy;&ocy;&tcy;&icy;&tcy;&iecy;, &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &bcy;&ycy;&lcy;&icy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ycy; &vcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&ucy;&yucy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yucy;, &vcy;&acy;&mcy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy; &scy;&ncy;&ocy;&vcy;&acy; &zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&softcy;  <code>git add</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &dcy;&ocy;&bcy;&acy;&vcy;&icy;&tcy;&softcy; &ncy;&ocy;&vcy;&ocy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;.</span></p> <p><span data-i18n="60bd9727a878dd0c3602f9f1ce91bf4c8082e22e4b5a54d6acd448bead1ac75f/33" data-source="The &lt;code&gt;git status&lt;/code&gt; command can be used to obtain a summary of which files have changes that are staged for the next commit." onmousemove="i18n(this)">&Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy;  <code>git status</code>  &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &scy;&vcy;&ocy;&dcy;&ncy;&ocy;&jcy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&icy; &ocy; &tcy;&ocy;&mcy;, &kcy;&acy;&kcy;&icy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&tcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;, &pcy;&ocy;&dcy;&gcy;&ocy;&tcy;&ocy;&vcy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &dcy;&lcy;&yacy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&jcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;.</span></p> <p><span data-i18n="9bca66e4f5641f19dbfa19aef15be4385749149467c6d5a56f29eb2a0624d8f0/47" data-source="The &lt;code&gt;git add&lt;/code&gt; command will not add ignored files by default. If any ignored files were explicitly specified on the command line, &lt;code&gt;git add&lt;/code&gt; will fail with a list of ignored files. Ignored files reached by directory recursion or filename globbing performed by Git (quote your globs before the shell) will be silently ignored. The &lt;code&gt;git add&lt;/code&gt; command can be used to add ignored files with the &lt;code&gt;-f&lt;/code&gt; (force) option." onmousemove="i18n(this)">&Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>git add</code>  &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &ncy;&iecy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&iecy;&mcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;. &IEcy;&scy;&lcy;&icy; &kcy;&acy;&kcy;&icy;&iecy;-&lcy;&icy;&bcy;&ocy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&iecy;&mcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &bcy;&ycy;&lcy;&icy; &yacy;&vcy;&ncy;&ocy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ycy; &vcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&iecy;,  <code>git add</code>  &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&icy;&tcy;&scy;&yacy; &ocy;&shcy;&icy;&bcy;&kcy;&ocy;&jcy; &scy;&ocy; &scy;&pcy;&icy;&scy;&kcy;&ocy;&mcy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&iecy;&mcy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;. &Icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&iecy;&mcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;, &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&ncy;&ycy;&iecy; &vcy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&iecy; &rcy;&iecy;&kcy;&ucy;&rcy;&scy;&icy;&icy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&ocy;&vcy; &icy;&lcy;&icy; &pcy;&ocy;&dcy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&kcy;&icy; &icy;&mcy;&iecy;&ncy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&mcy;&ocy;&jcy;  Git  (&zcy;&acy;&kcy;&acy;&vcy;&ycy;&chcy;&icy;&vcy;&acy;&jcy;&tcy;&iecy; &scy;&vcy;&ocy;&icy; &pcy;&ocy;&dcy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&kcy;&icy; &pcy;&iecy;&rcy;&iecy;&dcy; &ocy;&bcy;&ocy;&lcy;&ocy;&chcy;&kcy;&ocy;&jcy;), &bcy;&ucy;&dcy;&ucy;&tcy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &bcy;&iecy;&zcy; &ucy;&vcy;&iecy;&dcy;&ocy;&mcy;&lcy;&iecy;&ncy;&icy;&yacy;. &Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy;  <code>git add</code>  &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&iecy;&mcy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &ocy;&pcy;&tscy;&icy;&icy;  <code>-f</code>  (force).</span></p> <p><span data-i18n="fdef13c19c52df3a99aa8c59cb30320b9358a681a2255b0f9ba8707040fb6d8d/56" data-source="Please see &lt;a href=&quot;git-commit&quot;&gt;git-commit[1]&lt;/a&gt; for alternative ways to add content to a commit." onmousemove="i18n(this)">&Scy;&mcy;.  <a href="git-commit.html">git-commit[1]</a> , &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&zcy;&ncy;&acy;&tcy;&softcy; &ocy;&bcy; &acy;&lcy;&softcy;&tcy;&iecy;&rcy;&ncy;&acy;&tcy;&icy;&vcy;&ncy;&ycy;&khcy; &scy;&pcy;&ocy;&scy;&ocy;&bcy;&acy;&khcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&gcy;&ocy; &vcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_options"><span data-i18n="d0db8b5e364b6989e4b8f38a2b3846b87d99a51c1592ebf35d21cc66405a8e39/b6" data-source="Options" onmousemove="i18n(this)">Options</span></h2> <div> <div> <dl> <dt id="Documentation/git-add.txt-ltpathspecgt82308203"><span data-i18n="5c5493d0791d7f222f3401382dbca513ccb6d257ea0ecc4d926b47bd7c332f5f/89" data-source="&amp;lt;pathspec&amp;gt;&amp;hellip;" onmousemove="i18n(this)">&lt;pathspec&gt;&hellip;</span></dt> <dd> <p><span data-i18n="d6fab9a07da812961a225f99d645f183c440f9fec38bb3a42cb10f93ce4817d9/f0" data-source="Files to add content from. Fileglobs (e.g. &lt;code&gt;*.c&lt;/code&gt;) can be given to add all matching files. Also a leading directory name (e.g. &lt;code&gt;dir&lt;/code&gt; to add &lt;code&gt;dir/file1&lt;/code&gt; and &lt;code&gt;dir/file2&lt;/code&gt;) can be given to update the index to match the current state of the directory as a whole (e.g. specifying &lt;code&gt;dir&lt;/code&gt; will record not just a file &lt;code&gt;dir/file1&lt;/code&gt; modified in the working tree, a file &lt;code&gt;dir/file2&lt;/code&gt; added to the working tree, but also a file &lt;code&gt;dir/file3&lt;/code&gt; removed from the working tree). Note that older versions of Git used to ignore removed files; use &lt;code&gt;--no-all&lt;/code&gt; option if you want to add modified or new files but ignore removed ones." onmousemove="i18n(this)">&Fcy;&acy;&jcy;&lcy;&ycy;, &icy;&zcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &ncy;&ucy;&zhcy;&ncy;&ocy; &dcy;&ocy;&bcy;&acy;&vcy;&icy;&tcy;&softcy; &kcy;&ocy;&ncy;&tcy;&iecy;&ncy;&tcy;. Fileglobs (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;,  <code>*.c</code> ) &mcy;&ocy;&zhcy;&ncy;&ocy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &vcy;&scy;&iecy;&khcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;. &Tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&ncy;&ocy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &vcy;&iecy;&dcy;&ucy;&shchcy;&iecy;&iecy; &icy;&mcy;&yacy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;,  <code>dir</code>  &dcy;&lcy;&yacy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;  <code>dir/file1</code>  &icy;  <code>dir/file2</code> ), &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&ncy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ocy;&vcy;&acy;&lcy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&mcy;&ucy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&yucy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy; &vcy; &tscy;&iecy;&lcy;&ocy;&mcy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &ucy;&kcy;&acy;&zcy;&acy;&ncy;&icy;&iecy;  <code>dir</code>  &bcy;&ucy;&dcy;&iecy;&tcy; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&tcy;&softcy; &ncy;&iecy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &fcy;&acy;&jcy;&lcy;  <code>dir/file1</code> , &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ycy;&jcy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy;, &fcy;&acy;&jcy;&lcy;  <code>dir/file2</code>  &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&iecy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy;, &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &fcy;&acy;&jcy;&lcy;  <code>dir/file3</code>  &ucy;&dcy;&acy;&lcy;&iecy;&ncy; &icy;&zcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy;). &Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &bcy;&ocy;&lcy;&iecy;&iecy; &scy;&tcy;&acy;&rcy;&ycy;&iecy; &vcy;&iecy;&rcy;&scy;&icy;&icy;  Git  &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&lcy;&icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy; &ocy;&pcy;&tscy;&icy;&yucy;  <code>--no-all</code> , &iecy;&scy;&lcy;&icy; &vcy;&ycy; &khcy;&ocy;&tcy;&icy;&tcy;&iecy; &dcy;&ocy;&bcy;&acy;&vcy;&icy;&tcy;&softcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ycy;&iecy; &icy;&lcy;&icy; &ncy;&ocy;&vcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;, &ncy;&ocy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy;.</span></p> <p><span data-i18n="86be86d927e9507654cbe117ff9b290adfd36e3eda49350bc8ed77fa4d49220e/bf" data-source="For more details about the &amp;lt;pathspec&amp;gt; syntax, see the &lt;code&gt;pathspec&lt;/code&gt; entry in &lt;a href=&quot;gitglossary&quot;&gt;gitglossary[7]&lt;/a&gt;." onmousemove="i18n(this)">&Dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&iecy; &scy;&vcy;&iecy;&dcy;&iecy;&ncy;&icy;&yacy; &ocy; &scy;&icy;&ncy;&tcy;&acy;&kcy;&scy;&icy;&scy;&iecy; &lt;pathspec&gt; &scy;&mcy;. &vcy; &zcy;&acy;&pcy;&icy;&scy;&icy;  <code>pathspec</code>  &vcy;  <a href="gitglossary.html">gitglossary[7]</a> .</span></p> </dd> <dt id="Documentation/git-add.txt--n"><span data-i18n="5249f4fcc629efa0e6d6b2bf746b6c5de61611ce719ad61ac820fbe5c8cece66/28" data-source="-n" onmousemove="i18n(this)">-n</span></dt> <dt id="Documentation/git-add.txt---dry-run"><span data-i18n="675ca48430023bf861e914e0cf5bbe183efe84bd9d831affc574394bf4edc690/c1" data-source="--dry-run" onmousemove="i18n(this)">--dry-run</span></dt> <dd> <p><span data-i18n="f471cc9a384eda14ab195d6fd80c9be3c50859e113bca83229a484c9e8c442e6/f3" data-source="Don&amp;rsquo;t actually add the file(s), just show if they exist and/or will be ignored." onmousemove="i18n(this)">&Ncy;&acy; &scy;&acy;&mcy;&ocy;&mcy; &dcy;&iecy;&lcy;&iecy; &ncy;&iecy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&jcy;&tcy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;, &pcy;&rcy;&ocy;&scy;&tcy;&ocy; &pcy;&ocy;&kcy;&acy;&zhcy;&icy;&tcy;&iecy;, &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&tcy; &lcy;&icy; &ocy;&ncy;&icy; &icy;/&icy;&lcy;&icy; &bcy;&ucy;&dcy;&ucy;&tcy; &lcy;&icy; &ocy;&ncy;&icy; &pcy;&rcy;&ocy;&icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ycy;.</span></p> </dd> <dt id="Documentation/git-add.txt--v"><span data-i18n="81c36ccd44ef18baabad6e2d87038b72d606263bd6a3432b964a872023654fff/7c" data-source="-v" onmousemove="i18n(this)">-v</span></dt> <dt id="Documentation/git-add.txt---verbose"><span data-i18n="bff1e8d3adf9e53481e9b21876983b359dc8a231bf7ebadde36a42dd7bd4db5c/93" data-source="--verbose" onmousemove="i18n(this)">--verbose</span></dt> <dd> <p><span data-i18n="fa713fd0cca63d1acee254650cc7c7e03f2c0238182b676c6e55302f4322a5ef/25" data-source="Be verbose." onmousemove="i18n(this)">Be verbose.</span></p> </dd> <dt id="Documentation/git-add.txt--f"><span data-i18n="0e6503c1ece40e4ea7668463248ea2716eb37643f2c2c605f8bcee4d195a1705/83" data-source="-f" onmousemove="i18n(this)">-f</span></dt> <dt id="Documentation/git-add.txt---force"><span data-i18n="be262a109369ff4174b4b7a7aa917a83ca99dc94093be7d497384bb8c0f9cee6/ef" data-source="--force" onmousemove="i18n(this)">--force</span></dt> <dd> <p><span data-i18n="624852f0d55d2f1d58727b15a47cf16f575be361268986b97f439bc60b26291c/e2" data-source="Allow adding otherwise ignored files." onmousemove="i18n(this)">&Rcy;&acy;&zcy;&rcy;&iecy;&shcy;&icy;&tcy;&softcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&iecy;&mcy;&ycy;&khcy; &icy;&ncy;&acy;&chcy;&iecy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;.</span></p> </dd> <dt id="Documentation/git-add.txt---sparse"><span data-i18n="772e33e8b03937db3998ff9e8cd7b8114d1c7f3398436b3f057422d62afb165a/f4" data-source="--sparse" onmousemove="i18n(this)">--sparse</span></dt> <dd> <p><span data-i18n="146171ed8917ef6a6a278e6dd20a6f979beddf743aa44b417b4c777dc63c46e0/88" data-source="Allow updating index entries outside of the sparse-checkout cone. Normally, &lt;code&gt;git add&lt;/code&gt; refuses to update index entries whose paths do not fit within the sparse-checkout cone, since those files might be removed from the working tree without warning. See &lt;a href=&quot;git-sparse-checkout&quot;&gt;git-sparse-checkout[1]&lt;/a&gt; for more details." onmousemove="i18n(this)">&Rcy;&acy;&zcy;&rcy;&iecy;&shcy;&icy;&tcy;&softcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &zcy;&acy;&pcy;&icy;&scy;&iecy;&jcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy; &zcy;&acy; &pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&acy;&mcy;&icy; &kcy;&ocy;&ncy;&ucy;&scy;&acy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy;. &Ocy;&bcy;&ycy;&chcy;&ncy;&ocy;  <code>git add</code>  &ocy;&tcy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&tcy;&softcy; &zcy;&acy;&pcy;&icy;&scy;&icy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy;, &pcy;&ucy;&tcy;&icy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &ncy;&iecy; &pcy;&ocy;&pcy;&acy;&dcy;&acy;&yucy;&tcy; &vcy; &kcy;&ocy;&ncy;&ucy;&scy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy;, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &ecy;&tcy;&icy; &fcy;&acy;&jcy;&lcy;&ycy; &mcy;&ocy;&gcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ycy; &icy;&zcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy; &bcy;&iecy;&zcy; &pcy;&rcy;&iecy;&dcy;&ucy;&pcy;&rcy;&iecy;&zhcy;&dcy;&iecy;&ncy;&icy;&yacy;. &Bcy;&ocy;&lcy;&iecy;&iecy; &pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ucy;&yucy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yucy; &scy;&mcy;. &vcy;  <a href="git-sparse-checkout.html">git-sparse-checkout[1]</a> .</span></p> </dd> <dt id="Documentation/git-add.txt--i"><span data-i18n="444c8974fcf3d4d990db382d0a6ed1d69ffc4caa10da28afd7ab561fd7f27ced/9f" data-source="-i" onmousemove="i18n(this)">-i</span></dt> <dt id="Documentation/git-add.txt---interactive"><span data-i18n="8de13a6788f37255da5b35cac31b207d90b4219bd9af6d3da5bc2a30a027dae9/6e" data-source="--interactive" onmousemove="i18n(this)">--interactive</span></dt> <dd> <p><span data-i18n="8599d68f21d53250db603010f8b7637fe7e8f2009c6de1b2267a3d87c18503e9/01" data-source="Add modified contents in the working tree interactively to the index. Optional path arguments may be supplied to limit operation to a subset of the working tree. See &amp;ldquo;Interactive mode&amp;rdquo; for details." onmousemove="i18n(this)">&Dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&jcy;&tcy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ocy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; &vcy; &icy;&ncy;&tcy;&iecy;&rcy;&acy;&kcy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy;. &Mcy;&ocy;&gcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy;&ycy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&iecy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ycy; &pcy;&ucy;&tcy;&icy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&icy;&tcy;&softcy; &rcy;&acy;&bcy;&ocy;&tcy;&ucy; &pcy;&ocy;&dcy;&mcy;&ncy;&ocy;&zhcy;&iecy;&scy;&tcy;&vcy;&ocy;&mcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy;. &Pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ocy;&scy;&tcy;&icy; &scy;&mcy;. &vcy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy; &laquo;&Icy;&ncy;&tcy;&iecy;&rcy;&acy;&kcy;&tcy;&icy;&vcy;&ncy;&ycy;&jcy; &rcy;&iecy;&zhcy;&icy;&mcy;&raquo;.</span></p> </dd> <dt id="Documentation/git-add.txt--p"><span data-i18n="567479c447e472328522a1d759aabb9b579e4522a6da547c983d29e94c1604c2/a3" data-source="-p" onmousemove="i18n(this)">-p</span></dt> <dt id="Documentation/git-add.txt---patch"><span data-i18n="7bbfb9636bd1ed3b4d0a3db1cafae5a073c8b069ffda4dcb6cbe8b2a921024c5/4f" data-source="--patch" onmousemove="i18n(this)">--patch</span></dt> <dd> <p><span data-i18n="2f211bba19c244528b2972f33edf96d909e8a53b1ea0503bfb475b74c9a413da/d2" data-source="Interactively choose hunks of patch between the index and the work tree and add them to the index. This gives the user a chance to review the difference before adding modified contents to the index." onmousemove="i18n(this)">&Vcy; &icy;&ncy;&tcy;&iecy;&rcy;&acy;&kcy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy; &vcy;&ycy;&bcy;&icy;&rcy;&acy;&jcy;&tcy;&iecy; &fcy;&rcy;&acy;&gcy;&mcy;&iecy;&ncy;&tcy;&ycy; &pcy;&acy;&tcy;&chcy;&iecy;&jcy; &mcy;&iecy;&zhcy;&dcy;&ucy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&ocy;&mcy; &icy; &rcy;&acy;&bcy;&ocy;&chcy;&icy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy;&mcy; &icy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&jcy;&tcy;&iecy; &icy;&khcy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;. &Ecy;&tcy;&ocy; &dcy;&acy;&iecy;&tcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yucy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&softcy; &pcy;&rcy;&ocy;&scy;&mcy;&ocy;&tcy;&rcy;&iecy;&tcy;&softcy; &rcy;&acy;&zcy;&ncy;&icy;&tscy;&ucy; &pcy;&iecy;&rcy;&iecy;&dcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy;&mcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&gcy;&ocy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;.</span></p> <p><span data-i18n="75fb39e41eb4aa9927ec1b0bd74775aa04b20be85a0f652066728c2d579263ba/60" data-source="This effectively runs &lt;code&gt;add --interactive&lt;/code&gt;, but bypasses the initial command menu and directly jumps to the &lt;code&gt;patch&lt;/code&gt; subcommand. See &amp;ldquo;Interactive mode&amp;rdquo; for details." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &ecy;&fcy;&fcy;&iecy;&kcy;&tcy;&icy;&vcy;&ncy;&ocy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;  <code>add --interactive</code>  , &ncy;&ocy; &pcy;&rcy;&ocy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy; &ncy;&acy;&chcy;&acy;&lcy;&softcy;&ncy;&ocy;&iecy; &mcy;&iecy;&ncy;&yucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy; &icy; &scy;&rcy;&acy;&zcy;&ucy; &pcy;&iecy;&rcy;&iecy;&khcy;&ocy;&dcy;&icy;&tcy; &kcy; &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&iecy;  <code>patch</code> . &Pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ocy;&scy;&tcy;&icy; &scy;&mcy;. &vcy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy; &laquo;&Icy;&ncy;&tcy;&iecy;&rcy;&acy;&kcy;&tcy;&icy;&vcy;&ncy;&ycy;&jcy; &rcy;&iecy;&zhcy;&icy;&mcy;&raquo;.</span></p> </dd> <dt id="Documentation/git-add.txt--e"><span data-i18n="44d2846e091eb9e7b6ac807e4d426fc83e819cec5681288eb3696a5c0e3d3678/84" data-source="-e" onmousemove="i18n(this)">-e</span></dt> <dt id="Documentation/git-add.txt---edit"><span data-i18n="cc5742b084b508c13441caade319afc12636c48b1bca9711e824e9997befc99b/d9" data-source="--edit" onmousemove="i18n(this)">--edit</span></dt> <dd> <p><span data-i18n="b6bbe7dbe1bdfb9cee8c318ba1bb79947fe88162e163b0187d05fcc640e15846/7c" data-source="Open the diff vs. the index in an editor and let the user edit it. After the editor was closed, adjust the hunk headers and apply the patch to the index." onmousemove="i18n(this)">&Ocy;&tcy;&kcy;&rcy;&ocy;&jcy;&tcy;&iecy; &rcy;&acy;&zcy;&ncy;&icy;&tscy;&ucy; &icy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; &vcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy;&iecy; &icy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&softcy;&tcy;&iecy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yucy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &iecy;&iecy;. &Pcy;&ocy;&scy;&lcy;&iecy; &zcy;&acy;&kcy;&rcy;&ycy;&tcy;&icy;&yacy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy;&acy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&tcy;&iecy; &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&icy; &khcy;&acy;&ncy;&kcy;&ocy;&vcy; &icy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&icy;&tcy;&iecy; &pcy;&acy;&tcy;&chcy; &kcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&ucy;.</span></p> <p><span data-i18n="b62cb4a1cc30bb3366acbcfe4886226cf4c82bd5bf34902817d659498b8f5eaa/d3" data-source="The intent of this option is to pick and choose lines of the patch to apply, or even to modify the contents of lines to be staged. This can be quicker and more flexible than using the interactive hunk selector. However, it is easy to confuse oneself and create a patch that does not apply to the index. See EDITING PATCHES below." onmousemove="i18n(this)">&TScy;&iecy;&lcy;&softcy;&yucy; &ecy;&tcy;&ocy;&jcy; &ocy;&pcy;&tscy;&icy;&icy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &vcy;&ycy;&bcy;&ocy;&rcy; &scy;&tcy;&rcy;&ocy;&kcy; &pcy;&acy;&tcy;&chcy;&acy; &dcy;&lcy;&yacy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &icy;&lcy;&icy; &dcy;&acy;&zhcy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&gcy;&ocy; &scy;&tcy;&rcy;&ocy;&kcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &bcy;&ucy;&dcy;&ucy;&tcy; &pcy;&ocy;&dcy;&gcy;&ocy;&tcy;&ocy;&vcy;&lcy;&iecy;&ncy;&ycy;. &Ecy;&tcy;&ocy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &bcy;&ycy;&scy;&tcy;&rcy;&iecy;&iecy; &icy; &gcy;&icy;&bcy;&chcy;&iecy;, &chcy;&iecy;&mcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &icy;&ncy;&tcy;&iecy;&rcy;&acy;&kcy;&tcy;&icy;&vcy;&ncy;&ocy;&gcy;&ocy; &vcy;&ycy;&bcy;&ocy;&rcy;&acy; &fcy;&rcy;&acy;&gcy;&mcy;&iecy;&ncy;&tcy;&ocy;&vcy;. &Ocy;&dcy;&ncy;&acy;&kcy;&ocy; &lcy;&iecy;&gcy;&kcy;&ocy; &zcy;&acy;&pcy;&ucy;&tcy;&acy;&tcy;&softcy;&scy;&yacy; &icy; &scy;&ocy;&zcy;&dcy;&acy;&tcy;&softcy; &pcy;&acy;&tcy;&chcy;, &ncy;&iecy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&icy;&mcy;&ycy;&jcy; &kcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&ucy;. &Scy;&mcy;. &Rcy;&IEcy;&Dcy;&Acy;&Kcy;&Tcy;&Icy;&Rcy;&Ocy;&Vcy;&Acy;&Ncy;&Icy;&IEcy; &Pcy;&Acy;&Tcy;&CHcy;&IEcy;&Jcy; &ncy;&icy;&zhcy;&iecy;.</span></p> </dd> <dt id="Documentation/git-add.txt--u"><span data-i18n="99f14531f2599afdb9ace38c18c10740fd29ca1bdcdb7d0460fd799001d567bd/0f" data-source="-u" onmousemove="i18n(this)">-u</span></dt> <dt id="Documentation/git-add.txt---update"><span data-i18n="12c2ae18c413d9b6a27519e632405b9acb136077d2625eee3d9f24264fe2f627/16" data-source="--update" onmousemove="i18n(this)">--update</span></dt> <dd> <p><span data-i18n="84fa29c835d9616bd126763df7aadd39caba38fe7d69df597fbb0286133fd7a1/a3" data-source="Update the index just where it already has an entry matching &amp;lt;pathspec&amp;gt;. This removes as well as modifies index entries to match the working tree, but adds no new files." onmousemove="i18n(this)">&Ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy;&iecy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; &tcy;&acy;&mcy;, &gcy;&dcy;&iecy; &ucy;&zhcy;&iecy; &iecy;&scy;&tcy;&softcy; &zcy;&acy;&pcy;&icy;&scy;&softcy;, &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&acy;&yacy; &lt;pathspec&gt;. &Pcy;&rcy;&icy; &ecy;&tcy;&ocy;&mcy; &ucy;&dcy;&acy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &icy; &icy;&zcy;&mcy;&iecy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy; &zcy;&acy;&pcy;&icy;&scy;&icy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy; &vcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&icy;&icy; &scy; &rcy;&acy;&bcy;&ocy;&chcy;&icy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy;&mcy;, &ncy;&ocy; &ncy;&ocy;&vcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &ncy;&iecy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy;.</span></p> <p><span data-i18n="1b550c47a5ba48085a3ce3a75b51b66a867b94603a431920f071e8a1bb490847/4c" data-source="If no &amp;lt;pathspec&amp;gt; is given when &lt;code&gt;-u&lt;/code&gt; option is used, all tracked files in the entire working tree are updated (old versions of Git used to limit the update to the current directory and its subdirectories)." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy;  <code>-u</code>  &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy; &lt;pathspec&gt;, &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &vcy;&scy;&iecy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &vcy;&ocy; &vcy;&scy;&iecy;&mcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy; (&scy;&tcy;&acy;&rcy;&ycy;&iecy; &vcy;&iecy;&rcy;&scy;&icy;&icy;  Git  &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&lcy;&icy;&scy;&softcy; &dcy;&lcy;&yacy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&iecy;&ncy;&icy;&yacy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &tcy;&iecy;&kcy;&ucy;&shchcy;&icy;&mcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&ocy;&mcy; &icy; &iecy;&gcy;&ocy; &pcy;&ocy;&dcy;&kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;&mcy;&icy;).</span></p> </dd> <dt id="Documentation/git-add.txt--A"><span data-i18n="aad8f90c96ec1604a5995e55538e65764ceea0e66933214a3bab5338cb1e7311/c6" data-source="-A" onmousemove="i18n(this)">-A</span></dt> <dt id="Documentation/git-add.txt---all"><span data-i18n="7dbf56c38208e33a9193b210245465f7729af0d59b9df556e7f1f7138a6d6e93/a1" data-source="--all" onmousemove="i18n(this)">--all</span></dt> <dt id="Documentation/git-add.txt---no-ignore-removal"><span data-i18n="c572bdc4dc5bbf3adfc8337db24890a40e0694643c3f994f8e784a4098a33077/ae" data-source="--no-ignore-removal" onmousemove="i18n(this)">--no-ignore-removal</span></dt> <dd> <p><span data-i18n="793c4758a3169bb98d8554105c108fb5830800b85bb80499d11f8006ecf8242f/00" data-source="Update the index not only where the working tree has a file matching &amp;lt;pathspec&amp;gt; but also where the index already has an entry. This adds, modifies, and removes index entries to match the working tree." onmousemove="i18n(this)">&Ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy;&iecy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; &ncy;&iecy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &tcy;&acy;&mcy;, &gcy;&dcy;&iecy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy; &iecy;&scy;&tcy;&softcy; &fcy;&acy;&jcy;&lcy;, &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&jcy; &lt;pathspec&gt;, &ncy;&ocy; &icy; &tcy;&acy;&mcy;, &gcy;&dcy;&iecy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&iecy; &ucy;&zhcy;&iecy; &iecy;&scy;&tcy;&softcy; &zcy;&acy;&pcy;&icy;&scy;&softcy;. &Ecy;&tcy;&ocy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy;, &icy;&zcy;&mcy;&iecy;&ncy;&yacy;&iecy;&tcy; &icy; &ucy;&dcy;&acy;&lcy;&yacy;&iecy;&tcy; &zcy;&acy;&pcy;&icy;&scy;&icy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy; &vcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&icy;&icy; &scy; &rcy;&acy;&bcy;&ocy;&chcy;&icy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy;&mcy;.</span></p> <p><span data-i18n="fec064981f475bdf457d676edfc6c2801e7660170e741da4291561d629149955/82" data-source="If no &amp;lt;pathspec&amp;gt; is given when &lt;code&gt;-A&lt;/code&gt; option is used, all files in the entire working tree are updated (old versions of Git used to limit the update to the current directory and its subdirectories)." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &ocy;&pcy;&tscy;&icy;&icy;  <code>-A</code>  &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy; &lt;pathspec&gt;, &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &vcy;&scy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &vcy;&ocy; &vcy;&scy;&iecy;&mcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy; (&scy;&tcy;&acy;&rcy;&ycy;&iecy; &vcy;&iecy;&rcy;&scy;&icy;&icy;  Git  &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&lcy;&icy;&scy;&softcy; &dcy;&lcy;&yacy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&iecy;&ncy;&icy;&yacy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &tcy;&iecy;&kcy;&ucy;&shchcy;&icy;&mcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&ocy;&mcy; &icy; &iecy;&gcy;&ocy; &pcy;&ocy;&dcy;&kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;&mcy;&icy;).</span></p> </dd> <dt id="Documentation/git-add.txt---no-all"><span data-i18n="ac82803a6b1765d83d881f96c754e25310ac2d75a8af7ea1695e6a677599d488/f0" data-source="--no-all" onmousemove="i18n(this)">--no-all</span></dt> <dt id="Documentation/git-add.txt---ignore-removal"><span data-i18n="9440c5bece0df6e5a914956b27e0be4d2cdbf8bef94231bc462d75548d7ed654/72" data-source="--ignore-removal" onmousemove="i18n(this)">--ignore-removal</span></dt> <dd> <p><span data-i18n="66d1633d80b03ef5835026e53b2e8e20a5671ac3cef43df3162596b974218b44/2f" data-source="Update the index by adding new files that are unknown to the index and files modified in the working tree, but ignore files that have been removed from the working tree. This option is a no-op when no &amp;lt;pathspec&amp;gt; is used." onmousemove="i18n(this)">&Ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy;&iecy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;, &dcy;&ocy;&bcy;&acy;&vcy;&icy;&vcy; &ncy;&ocy;&vcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;, &ncy;&iecy;&icy;&zcy;&vcy;&iecy;&scy;&tcy;&ncy;&ycy;&iecy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&ucy;, &icy; &fcy;&acy;&jcy;&lcy;&ycy;, &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ycy;&iecy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy;, &ncy;&ocy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&jcy;&tcy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;, &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &icy;&zcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy;. &Ecy;&tcy;&acy; &ocy;&pcy;&tscy;&icy;&yacy; &ncy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy;, &iecy;&scy;&lcy;&icy; &ncy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &lt;pathspec&gt;.</span></p> <p><span data-i18n="8df3b8c2384106809371380f7b1f7d989e80046f96b48d6c11bbcfa074477b27/84" data-source="This option is primarily to help users who are used to older versions of Git, whose &amp;quot;git add &amp;lt;pathspec&amp;gt;&amp;hellip;&amp;ZeroWidthSpace;&amp;quot; was a synonym for &amp;quot;git add --no-all &amp;lt;pathspec&amp;gt;&amp;hellip;&amp;ZeroWidthSpace;&amp;quot;, i.e. ignored removed files." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &ocy;&pcy;&tscy;&icy;&yacy; &pcy;&rcy;&iecy;&dcy;&ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&acy; &vcy; &pcy;&iecy;&rcy;&vcy;&ucy;&yucy; &ocy;&chcy;&iecy;&rcy;&iecy;&dcy;&softcy; &dcy;&lcy;&yacy; &pcy;&ocy;&mcy;&ocy;&shchcy;&icy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;&mcy;, &pcy;&rcy;&icy;&vcy;&ycy;&kcy;&shcy;&icy;&mcy; &kcy; &bcy;&ocy;&lcy;&iecy;&iecy; &scy;&tcy;&acy;&rcy;&ycy;&mcy; &vcy;&iecy;&rcy;&scy;&icy;&yacy;&mcy; Git, &chcy;&iecy;&jcy;  &quot;git add &lt;pathspec&gt;&hellip;&ZeroWidthSpace;&quot;  &bcy;&ycy;&lcy; &scy;&icy;&ncy;&ocy;&ncy;&icy;&mcy;&ocy;&mcy;  &quot;git add --no-all &lt;pathspec&gt;&hellip;&ZeroWidthSpace;&quot; , &tcy;.&iecy;. &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&lcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;.</span></p> </dd> <dt id="Documentation/git-add.txt--N"><span data-i18n="803895641abb4e8a565d64bdb630d3ebe666668bf22cf7cebf182c8533a17d2f/1d" data-source="-N" onmousemove="i18n(this)">-N</span></dt> <dt id="Documentation/git-add.txt---intent-to-add"><span data-i18n="c24b7f38b8788fab551b11c4999cb810f352d4585dcae53b832f494a284b20ea/48" data-source="--intent-to-add" onmousemove="i18n(this)">--intent-to-add</span></dt> <dd> <p><span data-i18n="b3c64f2440746a3127578c1dc967d09a74394cdcd557337fced905e8b3ca0446/a3" data-source="Record only the fact that the path will be added later. An entry for the path is placed in the index with no content. This is useful for, among other things, showing the unstaged content of such files with &lt;code&gt;git diff&lt;/code&gt; and committing them with &lt;code&gt;git commit
-a&lt;/code&gt;." onmousemove="i18n(this)">&Zcy;&acy;&pcy;&icy;&shcy;&icy;&tcy;&iecy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &tcy;&ocy;&tcy; &fcy;&acy;&kcy;&tcy;, &chcy;&tcy;&ocy; &pcy;&ucy;&tcy;&softcy; &bcy;&ucy;&dcy;&iecy;&tcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy; &pcy;&ocy;&zcy;&zhcy;&iecy;. &Zcy;&acy;&pcy;&icy;&scy;&softcy; &ocy; &pcy;&ucy;&tcy;&icy; &pcy;&ocy;&mcy;&iecy;&shchcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; &bcy;&iecy;&zcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&gcy;&ocy;. &Ecy;&tcy;&ocy; &pcy;&ocy;&lcy;&iecy;&zcy;&ncy;&ocy;, &pcy;&ocy;&mcy;&icy;&mcy;&ocy; &pcy;&rcy;&ocy;&chcy;&iecy;&gcy;&ocy;, &dcy;&lcy;&yacy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&iecy;&ncy;&icy;&yacy; &ncy;&iecy;&pcy;&ocy;&dcy;&gcy;&ocy;&tcy;&ocy;&vcy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&gcy;&ocy; &tcy;&acy;&kcy;&icy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>git diff</code>  &icy; &icy;&khcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>git commit
-a</code> .</span></p> </dd> <dt id="Documentation/git-add.txt---refresh"><span data-i18n="a6d6ecebdbbbb2bf54a00053474e141799c356419f3feb04a5049dac11d05821/2b" data-source="--refresh" onmousemove="i18n(this)">--refresh</span></dt> <dd> <p><span data-i18n="bdca32859329ca552dac62ec51f3aae38c20d7ed7dc3c48e9e25e29bbf84944a/1b" data-source="Don&amp;rsquo;t add the file(s), but only refresh their stat() information in the index." onmousemove="i18n(this)">&Ncy;&iecy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&jcy;&tcy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;, &acy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&jcy;&tcy;&iecy; &icy;&khcy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yucy; stat() &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&iecy;.</span></p> </dd> <dt id="Documentation/git-add.txt---ignore-errors"><span data-i18n="980bc5befd2434a575881125a16b901f71bb43635521cc3f80cf9452fa3c7909/63" data-source="--ignore-errors" onmousemove="i18n(this)">--ignore-errors</span></dt> <dd> <p><span data-i18n="d9e444759fcce3100955ad88ff8c3f78a44e338a7c00d500dabcff1b1c2b5e7b/74" data-source="If some files could not be added because of errors indexing them, do not abort the operation, but continue adding the others. The command shall still exit with non-zero status. The configuration variable &lt;code&gt;add.ignoreErrors&lt;/code&gt; can be set to true to make this the default behaviour." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &ncy;&iecy; &ucy;&dcy;&acy;&lcy;&ocy;&scy;&softcy; &dcy;&ocy;&bcy;&acy;&vcy;&icy;&tcy;&softcy; &icy;&zcy;-&zcy;&acy; &ocy;&shcy;&icy;&bcy;&ocy;&kcy; &icy;&khcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy;&tscy;&icy;&icy;, &ncy;&iecy; &pcy;&rcy;&iecy;&rcy;&ycy;&vcy;&acy;&jcy;&tcy;&iecy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&yucy;, &acy; &pcy;&rcy;&ocy;&dcy;&ocy;&lcy;&zhcy;&acy;&jcy;&tcy;&iecy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &ocy;&scy;&tcy;&acy;&lcy;&softcy;&ncy;&ycy;&iecy;. &Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &pcy;&ocy;-&pcy;&rcy;&iecy;&zhcy;&ncy;&iecy;&mcy;&ucy; &dcy;&ocy;&lcy;&zhcy;&ncy;&acy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&icy;&tcy;&softcy;&scy;&yacy; &scy; &ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&ocy;&mcy;. &Dcy;&lcy;&yacy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>add.ignoreErrors</code>  &mcy;&ocy;&zhcy;&ncy;&ocy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;  true , &chcy;&tcy;&ocy;&bcy;&ycy; &scy;&dcy;&iecy;&lcy;&acy;&tcy;&softcy; &ecy;&tcy;&ocy; &pcy;&ocy;&vcy;&iecy;&dcy;&iecy;&ncy;&icy;&iecy;&mcy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;.</span></p> </dd> <dt id="Documentation/git-add.txt---ignore-missing"><span data-i18n="0217b7915f4f225197fd645c3d607ab59b296d34ceaaa7f8900ade128b0d4e29/32" data-source="--ignore-missing" onmousemove="i18n(this)">--ignore-missing</span></dt> <dd> <p><span data-i18n="c1fa75fe403c42eac234819df73c98ada93221da2b60f27bbc9647055617a47e/c1" data-source="This option can only be used together with --dry-run. By using this option the user can check if any of the given files would be ignored, no matter if they are already present in the work tree or not." onmousemove="i18n(this)">&Ecy;&tcy;&ucy; &ocy;&pcy;&tscy;&icy;&yucy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy;&mcy;&iecy;&scy;&tcy;&iecy; &scy; --dry-run. &Icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yacy; &ecy;&tcy;&ucy; &ocy;&pcy;&tscy;&icy;&yucy;, &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&icy;&tcy;&softcy;, &bcy;&ucy;&dcy;&iecy;&tcy; &lcy;&icy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &kcy;&acy;&kcy;&ocy;&jcy;-&lcy;&icy;&bcy;&ocy; &icy;&zcy; &zcy;&acy;&dcy;&acy;&ncy;&ncy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &ncy;&iecy;&zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy; &ocy;&tcy; &tcy;&ocy;&gcy;&ocy;, &pcy;&rcy;&icy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&tcy; &ocy;&ncy;&icy; &ucy;&zhcy;&iecy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy; &icy;&lcy;&icy; &ncy;&iecy;&tcy;.</span></p> </dd> <dt id="Documentation/git-add.txt---no-warn-embedded-repo"><span data-i18n="5990ccb1e1ea2ce6c0a650cb5de6907a5f1674025bfe7ca37ef38d6b4d7943c8/ff" data-source="--no-warn-embedded-repo" onmousemove="i18n(this)">--no-warn-embedded-repo</span></dt> <dd> <p><span data-i18n="f1773842df8153b73c854cb2dbb2d82fa3ebc0b60718c2b54fb947d49aecfc14/06" data-source="By default, &lt;code&gt;git add&lt;/code&gt; will warn when adding an embedded repository to the index without using &lt;code&gt;git submodule add&lt;/code&gt; to create an entry in &lt;code&gt;.gitmodules&lt;/code&gt;. This option will suppress the warning (e.g., if you are manually performing operations on submodules)." onmousemove="i18n(this)">&Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;  <code>git add</code>  &vcy;&ycy;&dcy;&acy;&iecy;&tcy; &pcy;&rcy;&iecy;&dcy;&ucy;&pcy;&rcy;&iecy;&zhcy;&dcy;&iecy;&ncy;&icy;&iecy; &pcy;&rcy;&icy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&icy; &vcy;&scy;&tcy;&rcy;&ocy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; &bcy;&iecy;&zcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;  <code>git submodule add</code>  &dcy;&lcy;&yacy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&yacy; &zcy;&acy;&pcy;&icy;&scy;&icy; &vcy;  <code>.gitmodules</code> . &Ecy;&tcy;&acy; &ocy;&pcy;&tscy;&icy;&yacy; &pcy;&ocy;&dcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &pcy;&rcy;&iecy;&dcy;&ucy;&pcy;&rcy;&iecy;&zhcy;&dcy;&iecy;&ncy;&icy;&iecy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &iecy;&scy;&lcy;&icy; &vcy;&ycy; &vcy;&rcy;&ucy;&chcy;&ncy;&ucy;&yucy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&iecy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&icy; &ncy;&acy;&dcy; &pcy;&ocy;&dcy;&mcy;&ocy;&dcy;&ucy;&lcy;&yacy;&mcy;&icy;).</span></p> </dd> <dt id="Documentation/git-add.txt---renormalize"><span data-i18n="17ed6362a971f728620de34d587ffe6f0689bac44511a32111410a5dfeed0ae1/63" data-source="--renormalize" onmousemove="i18n(this)">--renormalize</span></dt> <dd> <p><span data-i18n="945ab369132fc541e6fe688e7ebb6a61cb323507eaecf7f5071e0c6190a3be84/f2" data-source="Apply the &amp;quot;clean&amp;quot; process freshly to all tracked files to forcibly add them again to the index. This is useful after changing &lt;code&gt;core.autocrlf&lt;/code&gt; configuration or the &lt;code&gt;text&lt;/code&gt; attribute in order to correct files added with wrong CRLF/LF line endings. This option implies &lt;code&gt;-u&lt;/code&gt;. Lone CR characters are untouched, thus while a CRLF cleans to LF, a CRCRLF sequence is only partially cleaned to CRLF." onmousemove="i18n(this)">&Pcy;&rcy;&icy;&mcy;&iecy;&ncy;&icy;&tcy;&iecy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;  &quot;clean&quot;  &zcy;&acy;&ncy;&ocy;&vcy;&ocy; &kcy;&ocy; &vcy;&scy;&iecy;&mcy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&mcy; &fcy;&acy;&jcy;&lcy;&acy;&mcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&rcy;&icy;&ncy;&ucy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; &dcy;&ocy;&bcy;&acy;&vcy;&icy;&tcy;&softcy; &icy;&khcy; &scy;&ncy;&ocy;&vcy;&acy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;. &Ecy;&tcy;&ocy; &pcy;&ocy;&lcy;&iecy;&zcy;&ncy;&ocy; &pcy;&ocy;&scy;&lcy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>core.autocrlf</code>  &icy;&lcy;&icy; &acy;&tcy;&rcy;&icy;&bcy;&ucy;&tcy;&acy;  <code>text</code>  &dcy;&lcy;&yacy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &scy; &ncy;&iecy;&pcy;&rcy;&acy;&vcy;&icy;&lcy;&softcy;&ncy;&ycy;&mcy;&icy; &ocy;&kcy;&ocy;&ncy;&chcy;&acy;&ncy;&icy;&yacy;&mcy;&icy; &scy;&tcy;&rcy;&ocy;&kcy; CRLF/LF. &Ecy;&tcy;&ocy;&tcy; &vcy;&acy;&rcy;&icy;&acy;&ncy;&tcy; &pcy;&ocy;&dcy;&rcy;&acy;&zcy;&ucy;&mcy;&iecy;&vcy;&acy;&iecy;&tcy;  <code>-u</code> . &Ocy;&dcy;&icy;&ncy;&ocy;&chcy;&ncy;&ycy;&iecy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&ycy; CR &ocy;&scy;&tcy;&acy;&yucy;&tcy;&scy;&yacy; &ncy;&iecy;&tcy;&rcy;&ocy;&ncy;&ucy;&tcy;&ycy;&mcy;&icy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy;, &khcy;&ocy;&tcy;&yacy; CRLF &ocy;&chcy;&icy;&shchcy;&acy;&iecy;&tcy;&scy;&yacy; &dcy;&ocy; LF, &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&scy;&tcy;&softcy; CRCRLF &ocy;&chcy;&icy;&shchcy;&acy;&iecy;&tcy;&scy;&yacy; &dcy;&ocy; CRLF &lcy;&icy;&shcy;&softcy; &chcy;&acy;&scy;&tcy;&icy;&chcy;&ncy;&ocy;.</span></p> </dd> <dt id="Documentation/git-add.txt---chmod-x"><span data-i18n="d1135515aec1241b65c76656cbe3d27f4e246c9a7ff6f858977e3ab1d6b91d92/14" data-source="--chmod=(+|-)x" onmousemove="i18n(this)">--chmod=(+|-)x</span></dt> <dd> <p><span data-i18n="59148c76f3d5d8e7b607b231853d5623b2e1bfea9b8ad3c28c5ea3058550ee2c/17" data-source="Override the executable bit of the added files. The executable bit is only changed in the index, the files on disk are left unchanged." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&icy;&tcy;&softcy; &icy;&scy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&mcy;&ycy;&jcy; &bcy;&icy;&tcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;. &Mcy;&iecy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &bcy;&icy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&mcy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&iecy;, &fcy;&acy;&jcy;&lcy;&ycy; &ncy;&acy; &dcy;&icy;&scy;&kcy;&iecy; &ocy;&scy;&tcy;&acy;&yucy;&tcy;&scy;&yacy; &bcy;&iecy;&zcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy;.</span></p> </dd> <dt id="Documentation/git-add.txt---pathspec-from-fileltfilegt"><span data-i18n="da8857eb3d44efb4cdb38781f7cc2d2dd9074dc3c2a6ca51bd424135fedabfd0/18" data-source="--pathspec-from-file=&amp;lt;file&amp;gt;" onmousemove="i18n(this)">--pathspec-from-file=&lt;file&gt;</span></dt> <dd> <p><span data-i18n="edbea5c504ccb9748dfc5d09bca08d1600446d3e324d8503642ae08801e92fce/7b" data-source="Pathspec is passed in &lt;code&gt;&amp;lt;file&amp;gt;&lt;/code&gt; instead of commandline args. If &lt;code&gt;&amp;lt;file&amp;gt;&lt;/code&gt; is exactly &lt;code&gt;-&lt;/code&gt; then standard input is used. Pathspec elements are separated by LF or CR/LF. Pathspec elements can be quoted as explained for the configuration variable &lt;code&gt;core.quotePath&lt;/code&gt; (see &lt;a href=&quot;git-config&quot;&gt;git-config[1]&lt;/a&gt;). See also &lt;code&gt;--pathspec-file-nul&lt;/code&gt; and global &lt;code&gt;--literal-pathspecs&lt;/code&gt;." onmousemove="i18n(this)">&Scy;&pcy;&iecy;&tscy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&yacy; &pcy;&ucy;&tcy;&icy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy;  <code>&lt;file&gt;</code>  &vcy;&mcy;&iecy;&scy;&tcy;&ocy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ocy;&vcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;. &IEcy;&scy;&lcy;&icy;  <code>&lt;file&gt;</code>  &mdash; &ecy;&tcy;&ocy; &tcy;&ocy;&chcy;&ncy;&ocy;  <code>-</code> , &tcy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&vcy;&ocy;&dcy;. &Ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy;&ycy; Pathspec &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; LF &icy;&lcy;&icy; CR/LF. &Ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy;&ycy; Pathspec &mcy;&ocy;&zhcy;&ncy;&ocy; &zcy;&acy;&kcy;&lcy;&yucy;&chcy;&acy;&tcy;&softcy; &vcy; &kcy;&acy;&vcy;&ycy;&chcy;&kcy;&icy;, &kcy;&acy;&kcy; &ocy;&pcy;&icy;&scy;&acy;&ncy;&ocy; &dcy;&lcy;&yacy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>core.quotePath</code>  (&scy;&mcy;.  <a href="git-config.html">git-config[1]</a> ). &Scy;&mcy;. &tcy;&acy;&kcy;&zhcy;&iecy;  <code>--pathspec-file-nul</code>  &icy; &gcy;&lcy;&ocy;&bcy;&acy;&lcy;&softcy;&ncy;&ycy;&jcy;  <code>--literal-pathspecs</code> .</span></p> </dd> <dt id="Documentation/git-add.txt---pathspec-file-nul"><span data-i18n="425e5942f80034f1f089327693cf66158c953fde8f89bae24b0fbc651b9af0e9/1a" data-source="--pathspec-file-nul" onmousemove="i18n(this)">--pathspec-file-nul</span></dt> <dd> <p><span data-i18n="7e27df84b5773075cf108a34f1dc37f2f6a47f96c09842b70ed9d300ad32e7c1/c3" data-source="Only meaningful with &lt;code&gt;--pathspec-from-file&lt;/code&gt;. Pathspec elements are separated with NUL character and all other characters are taken literally (including newlines and quotes)." onmousemove="i18n(this)">&Icy;&mcy;&iecy;&iecy;&tcy; &scy;&mcy;&ycy;&scy;&lcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &scy;  <code>--pathspec-from-file</code> . &Ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy;&ycy; Pathspec &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&ocy;&mcy; NUL, &acy; &vcy;&scy;&iecy; &ocy;&scy;&tcy;&acy;&lcy;&softcy;&ncy;&ycy;&iecy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&ycy; &vcy;&ocy;&scy;&pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&yucy;&tcy;&scy;&yacy; &bcy;&ucy;&kcy;&vcy;&acy;&lcy;&softcy;&ncy;&ocy; (&vcy;&kcy;&lcy;&yucy;&chcy;&acy;&yacy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&ycy; &ncy;&ocy;&vcy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &icy; &kcy;&acy;&vcy;&ycy;&chcy;&kcy;&icy;).</span></p> </dd> <dt id="Documentation/git-add.txt---"><span data-i18n="d8156bae0c4243d3742fc4e9774d8aceabe0410249d720c855f98afc88ff846c/71" data-source="--" onmousemove="i18n(this)">--</span></dt> <dd> <p><span data-i18n="ba9fd00ff5b29039df6bd2bc9d7af497e496717081b0f32fc022da7e3f26f159/77" data-source="This option can be used to separate command-line options from the list of files, (useful when filenames might be mistaken for command-line options)." onmousemove="i18n(this)">&Ecy;&tcy;&ucy; &ocy;&pcy;&tscy;&icy;&yucy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &ocy;&tcy;&dcy;&iecy;&lcy;&iecy;&ncy;&icy;&yacy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&vcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &ocy;&tcy; &scy;&pcy;&icy;&scy;&kcy;&acy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; (&pcy;&ocy;&lcy;&iecy;&zcy;&ncy;&ocy;, &kcy;&ocy;&gcy;&dcy;&acy; &icy;&mcy;&iecy;&ncy;&acy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &mcy;&ocy;&gcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &ocy;&shcy;&icy;&bcy;&ocy;&chcy;&ncy;&ocy; &pcy;&rcy;&icy;&ncy;&yacy;&tcy;&ycy; &zcy;&acy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;).</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_examples"><span data-i18n="e68ee04dff59551b7d1ae07a2f8a00dc61d841628948da3d2781630706a05e92/38" data-source="Examples" onmousemove="i18n(this)">Examples</span></h2> <div> <div> <ul> <li> <p><span data-i18n="9e7508ad1e1f1c2fdaa9be55fc3f0512a13c6bc73b45eb684334b9e872b8b70c/6f" data-source="Adds content from all &lt;code&gt;*.txt&lt;/code&gt; files under &lt;code&gt;Documentation&lt;/code&gt; directory and its subdirectories:" onmousemove="i18n(this)">&Dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &icy;&zcy; &vcy;&scy;&iecy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;  <code>*.txt</code>  &vcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy;  <code>Documentation</code>  &icy; &iecy;&gcy;&ocy; &pcy;&ocy;&dcy;&kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;&khcy;:</span></p> <div> <div> <pre class="hljs language-csharp">$ git <span class="hljs-keyword">add</span> Documentation/\*.txt</pre> </div> </div> <p><span data-i18n="accbe33639e48f93a921e29c1d6fa598a91a726fd8d4c3213a1c900c96dc9137/99" data-source="Note that the asterisk &lt;code&gt;*&lt;/code&gt; is quoted from the shell in this example; this lets the command include the files from subdirectories of &lt;code&gt;Documentation/&lt;/code&gt; directory." onmousemove="i18n(this)">&Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &vcy; &ecy;&tcy;&ocy;&mcy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy;&iecy; &zcy;&vcy;&iecy;&zcy;&dcy;&ocy;&chcy;&kcy;&acy;  <code>*</code>  &tscy;&icy;&tcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &icy;&zcy; &ocy;&bcy;&ocy;&lcy;&ocy;&chcy;&kcy;&icy;; &ecy;&tcy;&ocy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&iecy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&tcy;&softcy; &fcy;&acy;&jcy;&lcy;&ycy; &icy;&zcy; &pcy;&ocy;&dcy;&kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&ocy;&vcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;  <code>Documentation/</code> .</span></p> </li> <li> <p><span data-i18n="439175811abda760e505a8157c3b0eb907298c6e6931f9e0c823fe03892c31b5/a2" data-source="Considers adding content from all git-*.sh scripts:" onmousemove="i18n(this)">&Rcy;&acy;&scy;&scy;&mcy;&acy;&tcy;&rcy;&icy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&softcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&ncy;&tcy;&iecy;&ncy;&tcy;&acy; &icy;&zcy; &vcy;&scy;&iecy;&khcy; &scy;&kcy;&rcy;&icy;&pcy;&tcy;&ocy;&vcy; git-*.sh:</span></p> <div> <div> <pre class="hljs language-csharp">$ git <span class="hljs-keyword">add</span> git-*.sh</pre> </div> </div> <p><span data-i18n="a7211506598c5cf17b5618659f7408b5e25679c1c77645279881bd835b9ca3c3/67" data-source="Because this example lets the shell expand the asterisk (i.e. you are listing the files explicitly), it does not consider &lt;code&gt;subdir/git-foo.sh&lt;/code&gt;." onmousemove="i18n(this)">&Pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &ecy;&tcy;&ocy;&tcy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &ocy;&bcy;&ocy;&lcy;&ocy;&chcy;&kcy;&iecy; &rcy;&acy;&scy;&shcy;&icy;&rcy;&icy;&tcy;&softcy; &zcy;&vcy;&iecy;&zcy;&dcy;&ocy;&chcy;&kcy;&ucy; (&tcy;. &iecy;. &vcy;&ycy; &yacy;&vcy;&ncy;&ocy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;), &ocy;&ncy; &ncy;&iecy; &ucy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&iecy;&tcy;  <code>subdir/git-foo.sh</code>  .</span></p> </li> </ul> </div> </div> <h2 class="text-body-emphasis"  id="_interactive_mode"><span data-i18n="8fedf63610c647aa1990ec2b36fff7c0f2313fa6bfb0afab6d75fd56e8073a9f/9c" data-source="Interactive mode" onmousemove="i18n(this)">Interactive mode</span></h2> <div> <p><span data-i18n="fe20d6f6d272d86bd26a33c5b84c9dc038a540fa8837123cac5d835146062a3a/4b" data-source="When the command enters the interactive mode, it shows the output of the &lt;code&gt;status&lt;/code&gt; subcommand, and then goes into its interactive command loop." onmousemove="i18n(this)">&Kcy;&ocy;&gcy;&dcy;&acy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &pcy;&iecy;&rcy;&iecy;&khcy;&ocy;&dcy;&icy;&tcy; &vcy; &icy;&ncy;&tcy;&iecy;&rcy;&acy;&kcy;&tcy;&icy;&vcy;&ncy;&ycy;&jcy; &rcy;&iecy;&zhcy;&icy;&mcy;, &ocy;&ncy;&acy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&acy;&iecy;&tcy; &vcy;&ycy;&khcy;&ocy;&dcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>status</code> , &acy; &zcy;&acy;&tcy;&iecy;&mcy; &pcy;&iecy;&rcy;&iecy;&khcy;&ocy;&dcy;&icy;&tcy; &vcy; &tscy;&icy;&kcy;&lcy; &icy;&ncy;&tcy;&iecy;&rcy;&acy;&kcy;&tcy;&icy;&vcy;&ncy;&ycy;&khcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;.</span></p> <p><span data-i18n="3e5b412f76e589cd81deef8f9b85807a8831021043a86087d109caa2580276f4/31" data-source="The command loop shows the list of subcommands available, and gives a prompt &amp;quot;What now&amp;gt; &amp;quot;. In general, when the prompt ends with a single &lt;code&gt;&amp;gt;&lt;/code&gt;, you can pick only one of the choices given and type return, like this:" onmousemove="i18n(this)">&Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ycy;&jcy; &tscy;&icy;&kcy;&lcy; &pcy;&ocy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy;&khcy; &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy; &icy; &vcy;&ycy;&dcy;&acy;&iecy;&tcy; &pcy;&rcy;&icy;&gcy;&lcy;&acy;&shcy;&iecy;&ncy;&icy;&iecy;  &quot;What now&gt; &quot; . &Vcy; &ocy;&bcy;&shchcy;&iecy;&mcy;, &kcy;&ocy;&gcy;&dcy;&acy; &pcy;&rcy;&icy;&gcy;&lcy;&acy;&shcy;&iecy;&ncy;&icy;&iecy; &zcy;&acy;&kcy;&acy;&ncy;&chcy;&icy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &ocy;&dcy;&ncy;&icy;&mcy;  <code>&gt;</code>  , &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &vcy;&ycy;&bcy;&rcy;&acy;&tcy;&softcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ocy;&dcy;&icy;&ncy; &icy;&zcy; &pcy;&rcy;&iecy;&dcy;&lcy;&ocy;&zhcy;&iecy;&ncy;&ncy;&ycy;&khcy; &vcy;&acy;&rcy;&icy;&acy;&ncy;&tcy;&ocy;&vcy; &icy; &vcy;&vcy;&iecy;&scy;&tcy;&icy; return, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;:</span></p> <div> <div> <pre class="hljs language-sql">    <span class="hljs-operator">*</span><span class="hljs-operator">*</span><span class="hljs-operator">*</span> Commands <span class="hljs-operator">*</span><span class="hljs-operator">*</span><span class="hljs-operator">*</span>
      <span class="hljs-number">1</span>: status       <span class="hljs-number">2</span>: <span class="hljs-keyword">update</span>       <span class="hljs-number">3</span>: revert       <span class="hljs-number">4</span>: <span class="hljs-keyword">add</span> untracked
      <span class="hljs-number">5</span>: patch        <span class="hljs-number">6</span>: diff         <span class="hljs-number">7</span>: quit         <span class="hljs-number">8</span>: help
    What now<span class="hljs-operator">&gt;</span> <span class="hljs-number">1</span></pre> </div> </div> <p><span data-i18n="57a867ce505f6432f8baf82a04062a1cb1bbe69eecd9c1cb808203ff42edda75/9f" data-source="You also could say &lt;code&gt;s&lt;/code&gt; or &lt;code&gt;sta&lt;/code&gt; or &lt;code&gt;status&lt;/code&gt; above as long as the choice is unique." onmousemove="i18n(this)">&Vcy;&ycy; &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &scy;&kcy;&acy;&zcy;&acy;&tcy;&softcy;  <code>s</code> ,  <code>sta</code>  &icy;&lcy;&icy;  <code>status</code>  &vcy;&ycy;&shcy;&iecy;, &iecy;&scy;&lcy;&icy; &vcy;&ycy;&bcy;&ocy;&rcy; &ucy;&ncy;&icy;&kcy;&acy;&lcy;&iecy;&ncy;.</span></p> <p><span data-i18n="683a1f17768b09370d0af524621c088f883db11e85c7a5474fc5063edfd87a8c/50" data-source="The main command loop has 6 subcommands (plus help and quit)." onmousemove="i18n(this)">&Ocy;&scy;&ncy;&ocy;&vcy;&ncy;&ocy;&jcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ycy;&jcy; &tscy;&icy;&kcy;&lcy; &icy;&mcy;&iecy;&iecy;&tcy; 6 &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy; (&pcy;&lcy;&yucy;&scy; help &icy; quit).</span></p> <div> <dl> <dt id="Documentation/git-add.txt-status"><span data-i18n="073c1634c496cdb649d1afe0a312bbb4b7e1741b271542e4a436c3b8824b1761/7a" data-source="status" onmousemove="i18n(this)">status</span></dt> <dd> <p><span data-i18n="db1ae7695770335c7ade9ea8645a0c2a37053cc0f0cc9de70893d6b2ec884b84/31" data-source="This shows the change between HEAD and index (i.e. what will be committed if you say &lt;code&gt;git commit&lt;/code&gt;), and between index and working tree files (i.e. what you could stage further before &lt;code&gt;git commit&lt;/code&gt; using &lt;code&gt;git add&lt;/code&gt;) for each path. A sample output looks like this:" onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &pcy;&ocy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy; &mcy;&iecy;&zhcy;&dcy;&ucy; HEAD &icy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&ocy;&mcy; (&tcy;. &iecy;. &chcy;&tcy;&ocy; &bcy;&ucy;&dcy;&iecy;&tcy; &zcy;&acy;&fcy;&icy;&kcy;&scy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ocy;, &iecy;&scy;&lcy;&icy; &vcy;&ycy; &scy;&kcy;&acy;&zhcy;&iecy;&tcy;&iecy;  <code>git commit</code>  ), &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&iecy;&zhcy;&dcy;&ucy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&ocy;&mcy; &icy; &fcy;&acy;&jcy;&lcy;&acy;&mcy;&icy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy; (&tcy;. &iecy;. &chcy;&tcy;&ocy; &vcy;&ycy; &mcy;&ocy;&gcy;&lcy;&icy; &bcy;&ycy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&softcy; &dcy;&acy;&lcy;&softcy;&shcy;&iecy; &pcy;&iecy;&rcy;&iecy;&dcy;  <code>git commit</code> , &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yacy;  <code>git add</code>  ) &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy; &pcy;&ucy;&tcy;&icy;. &Pcy;&rcy;&icy;&mcy;&iecy;&rcy; &vcy;&ycy;&vcy;&ocy;&dcy;&acy; &vcy;&ycy;&gcy;&lcy;&yacy;&dcy;&icy;&tcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;:</span></p> <div> <div> <pre class="hljs language-bash">              staged     unstaged path
     1:       binary      nothing foo.png
     2:     +403/-35        +1/-1 add-interactive.c</pre> </div> </div> <p><span data-i18n="8ecc03fa9d8321f569da26960e00fad075935a6e8156382df35f8489eba48b54/94" data-source="It shows that foo.png has differences from HEAD (but that is binary so line count cannot be shown) and there is no difference between indexed copy and the working tree version (if the working tree version were also different, &lt;code&gt;binary&lt;/code&gt; would have been shown in place of &lt;code&gt;nothing&lt;/code&gt;). The other file, add-interactive.c, has 403 lines added and 35 lines deleted if you commit what is in the index, but working tree file has further modifications (one addition and one deletion)." onmousemove="i18n(this)">&Ocy;&ncy; &pcy;&ocy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; foo.png &icy;&mcy;&iecy;&iecy;&tcy; &ocy;&tcy;&lcy;&icy;&chcy;&icy;&yacy; &ocy;&tcy; HEAD (&ncy;&ocy; &ocy;&ncy; &dcy;&vcy;&ocy;&icy;&chcy;&ncy;&ycy;&jcy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &scy;&tcy;&rcy;&ocy;&kcy; &ncy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &pcy;&ocy;&kcy;&acy;&zcy;&acy;&ncy;&ocy;) &icy; &ncy;&iecy;&tcy; &ncy;&icy;&kcy;&acy;&kcy;&ocy;&jcy; &rcy;&acy;&zcy;&ncy;&icy;&tscy;&ycy; &mcy;&iecy;&zhcy;&dcy;&ucy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ocy;&jcy; &kcy;&ocy;&pcy;&icy;&iecy;&jcy; &icy; &vcy;&iecy;&rcy;&scy;&icy;&iecy;&jcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy; (&iecy;&scy;&lcy;&icy; &bcy;&ycy; &vcy;&iecy;&rcy;&scy;&icy;&yacy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy; &tcy;&acy;&kcy;&zhcy;&iecy; &bcy;&ycy;&lcy;&acy; &dcy;&rcy;&ucy;&gcy;&ocy;&jcy;, &bcy;&ycy;&lcy; &bcy;&ycy; &pcy;&ocy;&kcy;&acy;&zcy;&acy;&ncy;  <code>binary</code> ). &vcy;&mcy;&iecy;&scy;&tcy;&ocy;  <code>nothing</code> ). &Vcy; &dcy;&rcy;&ucy;&gcy;&ocy;&jcy; &fcy;&acy;&jcy;&lcy;, add-interactive.c, &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&ocy; 403 &scy;&tcy;&rcy;&ocy;&kcy;&icy; &icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ocy; 35 &scy;&tcy;&rcy;&ocy;&kcy;, &iecy;&scy;&lcy;&icy; &vcy;&ycy; &zcy;&acy;&fcy;&icy;&kcy;&scy;&icy;&rcy;&ucy;&iecy;&tcy;&iecy; &tcy;&ocy;, &chcy;&tcy;&ocy; &ncy;&acy;&khcy;&ocy;&dcy;&icy;&tcy;&scy;&yacy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&iecy;, &ncy;&ocy; &fcy;&acy;&jcy;&lcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy; &icy;&mcy;&iecy;&iecy;&tcy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&iecy; &mcy;&ocy;&dcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&icy; (&ocy;&dcy;&ncy;&ocy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &icy; &ocy;&dcy;&ncy;&ocy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&iecy;).</span></p> </dd> <dt id="Documentation/git-add.txt-update"><span data-i18n="2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4/c9" data-source="update" onmousemove="i18n(this)">update</span></dt> <dd> <p><span data-i18n="2ce6978f248792cf56824c856df8098b0ab21028837610c3e7cc76d2e81ebec5/5a" data-source="This shows the status information and issues an &amp;quot;Update&amp;gt;&amp;gt;&amp;quot; prompt. When the prompt ends with double &lt;code&gt;&amp;gt;&amp;gt;&lt;/code&gt;, you can make more than one selection, concatenated with whitespace or comma. Also you can say ranges. E.g. &amp;quot;2-5 7,9&amp;quot; to choose 2,3,4,5,7,9 from the list. If the second number in a range is omitted, all remaining patches are taken. E.g. &amp;quot;7-&amp;quot; to choose 7,8,9 from the list. You can say &lt;code&gt;*&lt;/code&gt; to choose everything." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &ecy;&tcy;&ocy;&mcy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&acy;&iecy;&tcy;&scy;&yacy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yacy; &ocy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&icy; &icy; &vcy;&ycy;&dcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&rcy;&icy;&gcy;&lcy;&acy;&shcy;&iecy;&ncy;&icy;&iecy;  &quot;Update&gt;&gt;&quot; . &Kcy;&ocy;&gcy;&dcy;&acy; &pcy;&rcy;&icy;&gcy;&lcy;&acy;&shcy;&iecy;&ncy;&icy;&iecy; &zcy;&acy;&kcy;&acy;&ncy;&chcy;&icy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &dcy;&vcy;&ocy;&jcy;&ncy;&ycy;&mcy;  <code>&gt;&gt;</code>  , &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &scy;&dcy;&iecy;&lcy;&acy;&tcy;&softcy; &bcy;&ocy;&lcy;&iecy;&iecy; &ocy;&dcy;&ncy;&ocy;&gcy;&ocy; &vcy;&ycy;&bcy;&ocy;&rcy;&acy;, &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &pcy;&rcy;&ocy;&bcy;&iecy;&lcy;&acy;&mcy;&icy; &icy;&lcy;&icy; &zcy;&acy;&pcy;&yacy;&tcy;&ycy;&mcy;&icy;. &Tcy;&acy;&kcy;&zhcy;&iecy; &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &scy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &dcy;&icy;&acy;&pcy;&acy;&zcy;&ocy;&ncy;&ycy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;,  &quot;2-5 7,9&quot; , &chcy;&tcy;&ocy;&bcy;&ycy; &vcy;&ycy;&bcy;&rcy;&acy;&tcy;&softcy; 2,3,4,5,7,9 &icy;&zcy; &scy;&pcy;&icy;&scy;&kcy;&acy;. &IEcy;&scy;&lcy;&icy; &vcy;&tcy;&ocy;&rcy;&ocy;&iecy; &chcy;&icy;&scy;&lcy;&ocy; &vcy; &dcy;&icy;&acy;&pcy;&acy;&zcy;&ocy;&ncy;&iecy; &ocy;&pcy;&ucy;&shchcy;&iecy;&ncy;&ocy;, &bcy;&ucy;&dcy;&ucy;&tcy; &vcy;&zcy;&yacy;&tcy;&ycy; &vcy;&scy;&iecy; &ocy;&scy;&tcy;&acy;&vcy;&shcy;&icy;&iecy;&scy;&yacy; &pcy;&acy;&tcy;&chcy;&icy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;,  &quot;7-&quot; , &chcy;&tcy;&ocy;&bcy;&ycy; &vcy;&ycy;&bcy;&rcy;&acy;&tcy;&softcy; 7,8,9 &icy;&zcy; &scy;&pcy;&icy;&scy;&kcy;&acy;. &Vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &scy;&kcy;&acy;&zcy;&acy;&tcy;&softcy;  <code>*</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &vcy;&ycy;&bcy;&rcy;&acy;&tcy;&softcy; &vcy;&scy;&iecy;.</span></p> <p><span data-i18n="ee2fe897a8dc6e4403fd55372bfb25e791375b20d851a94359c2295d5aaaa129/19" data-source="What you chose are then highlighted with &lt;code&gt;*&lt;/code&gt;, like this:" onmousemove="i18n(this)">&Tcy;&ocy;, &chcy;&tcy;&ocy; &vcy;&ycy; &vcy;&ycy;&bcy;&rcy;&acy;&lcy;&icy;, &zcy;&acy;&tcy;&iecy;&mcy; &vcy;&ycy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy;  <code>*</code> , &vcy;&ocy;&tcy; &tcy;&acy;&kcy;:</span></p> <div> <div> <pre class="hljs language-bash">           staged     unstaged path
  1:       binary      nothing foo.png
* 2:     +403/-35        +1/-1 add-interactive.c</pre> </div> </div> <p><span data-i18n="fd2e5d41dea18e68ea2a6a531766c68f35578f9c8b7f69d61f88a097a584eccd/aa" data-source="To remove selection, prefix the input with &lt;code&gt;-&lt;/code&gt; like this:" onmousemove="i18n(this)">&CHcy;&tcy;&ocy;&bcy;&ycy; &scy;&ncy;&yacy;&tcy;&softcy; &vcy;&ycy;&dcy;&iecy;&lcy;&iecy;&ncy;&icy;&iecy;, &dcy;&ocy;&bcy;&acy;&vcy;&softcy;&tcy;&iecy; &kcy; &vcy;&vcy;&ocy;&dcy;&ucy; &pcy;&rcy;&iecy;&fcy;&icy;&kcy;&scy;  <code>-</code>  &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;:</span></p> <div> <div> <pre class="hljs language-shell"><span class="hljs-meta prompt_">Update&gt;</span><span class="language-bash">&gt; -2</span></pre> </div> </div> <p><span data-i18n="ed0d1f5ef142a2af02a407aef4e545b6c21d861930d9177c2ee92abc1902b3ff/6f" data-source="After making the selection, answer with an empty line to stage the contents of working tree files for selected paths in the index." onmousemove="i18n(this)">&Scy;&dcy;&iecy;&lcy;&acy;&vcy; &vcy;&ycy;&bcy;&ocy;&rcy;, &ocy;&tcy;&vcy;&iecy;&tcy;&softcy;&tcy;&iecy; &pcy;&ucy;&scy;&tcy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&ocy;&jcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &rcy;&acy;&zcy;&mcy;&iecy;&scy;&tcy;&icy;&tcy;&softcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy; &dcy;&lcy;&yacy; &vcy;&ycy;&bcy;&rcy;&acy;&ncy;&ncy;&ycy;&khcy; &pcy;&ucy;&tcy;&iecy;&jcy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&iecy;.</span></p> </dd> <dt id="Documentation/git-add.txt-revert"><span data-i18n="07913239c9e8d42fcd39da156d79fea4dcc8b373ef5cd2696b49275bc7887669/de" data-source="revert" onmousemove="i18n(this)">revert</span></dt> <dd> <p><span data-i18n="70a3ab1fc9a5700da47b2a9c1fc33c3e7b7a5d34e5cb2f46f70330e187156e61/db" data-source="This has a very similar UI to &lt;code&gt;update&lt;/code&gt;, and the staged information for selected paths are reverted to that of the HEAD version. Reverting new paths makes them untracked." onmousemove="i18n(this)">&Pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&jcy; &icy;&ncy;&tcy;&iecy;&rcy;&fcy;&iecy;&jcy;&scy; &ocy;&chcy;&iecy;&ncy;&softcy; &pcy;&ocy;&khcy;&ocy;&zhcy; &ncy;&acy;  <code>update</code> , &acy; &pcy;&rcy;&ocy;&mcy;&iecy;&zhcy;&ucy;&tcy;&ocy;&chcy;&ncy;&acy;&yacy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yacy; &dcy;&lcy;&yacy; &vcy;&ycy;&bcy;&rcy;&acy;&ncy;&ncy;&ycy;&khcy; &pcy;&ucy;&tcy;&iecy;&jcy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&acy;&iecy;&tcy;&scy;&yacy; &kcy; &vcy;&iecy;&rcy;&scy;&icy;&icy; HEAD. &Vcy;&ocy;&zcy;&vcy;&rcy;&acy;&tcy; &ncy;&ocy;&vcy;&ycy;&khcy; &pcy;&ucy;&tcy;&iecy;&jcy; &dcy;&iecy;&lcy;&acy;&iecy;&tcy; &icy;&khcy; &ncy;&iecy;&ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&mcy;&icy;.</span></p> </dd> <dt id="Documentation/git-add.txt-adduntracked"><span data-i18n="4e0f78820abed0d640d249dbadb18fa06d857040a1d0eb4d0410d4002a5775be/fb" data-source="add untracked" onmousemove="i18n(this)">add untracked</span></dt> <dd> <p><span data-i18n="1c10765e7f9d93e1327e9330c0c874dc3f34285a4da0ad437bf812fa4d472086/ef" data-source="This has a very similar UI to &lt;code&gt;update&lt;/code&gt; and &lt;code&gt;revert&lt;/code&gt;, and lets you add untracked paths to the index." onmousemove="i18n(this)">&Ocy;&ncy; &icy;&mcy;&iecy;&iecy;&tcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&jcy; &icy;&ncy;&tcy;&iecy;&rcy;&fcy;&iecy;&jcy;&scy;, &ocy;&chcy;&iecy;&ncy;&softcy; &pcy;&ocy;&khcy;&ocy;&zhcy;&icy;&jcy; &ncy;&acy;  <code>update</code>  &icy;  <code>revert</code> , &icy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; &ncy;&iecy;&ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&iecy; &pcy;&ucy;&tcy;&icy;.</span></p> </dd> <dt id="Documentation/git-add.txt-patch"><span data-i18n="a4895eb44afc336fecbba6e520cd67e178dace0276655d102fceffa8e5f70570/f7" data-source="patch" onmousemove="i18n(this)">patch</span></dt> <dd> <p><span data-i18n="f39848d7070ac1fc1d647745c82f15a33023e3d240e3b825a2302e6adb57eddd/ff" data-source="This lets you choose one path out of a &lt;code&gt;status&lt;/code&gt; like selection. After choosing the path, it presents the diff between the index and the working tree file and asks you if you want to stage the change of each hunk. You can select one of the following options and type return:" onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &vcy;&acy;&mcy; &vcy;&ycy;&bcy;&rcy;&acy;&tcy;&softcy; &ocy;&dcy;&icy;&ncy; &pcy;&ucy;&tcy;&softcy; &icy;&zcy; &vcy;&ycy;&bcy;&ocy;&rcy;&acy;, &pcy;&ocy;&dcy;&ocy;&bcy;&ncy;&ocy;&gcy;&ocy;  <code>status</code> . &Pcy;&ocy;&scy;&lcy;&iecy; &vcy;&ycy;&bcy;&ocy;&rcy;&acy; &pcy;&ucy;&tcy;&icy; &ocy;&ncy; &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &rcy;&acy;&zcy;&ncy;&icy;&tscy;&ucy; &mcy;&iecy;&zhcy;&dcy;&ucy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&ocy;&mcy; &icy; &fcy;&acy;&jcy;&lcy;&ocy;&mcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy; &icy; &scy;&pcy;&rcy;&acy;&shcy;&icy;&vcy;&acy;&iecy;&tcy;, &khcy;&ocy;&tcy;&icy;&tcy;&iecy; &lcy;&icy; &vcy;&ycy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&softcy; &pcy;&ocy;&ecy;&tcy;&acy;&pcy;&ncy;&ocy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy; &fcy;&rcy;&acy;&gcy;&mcy;&iecy;&ncy;&tcy;&acy;. &Vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &vcy;&ycy;&bcy;&rcy;&acy;&tcy;&softcy; &ocy;&dcy;&icy;&ncy; &icy;&zcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&khcy; &vcy;&acy;&rcy;&icy;&acy;&ncy;&tcy;&ocy;&vcy; &icy; &vcy;&vcy;&iecy;&scy;&tcy;&icy; return:</span></p> <div> <div> <pre class="hljs language-kotlin">y - stage <span class="hljs-keyword">this</span> hunk
n - <span class="hljs-keyword">do</span> not stage <span class="hljs-keyword">this</span> hunk
q - quit; <span class="hljs-keyword">do</span> not stage <span class="hljs-keyword">this</span> hunk or any of the remaining ones
a - stage <span class="hljs-keyword">this</span> hunk and all later hunks <span class="hljs-keyword">in</span> the file
d - <span class="hljs-keyword">do</span> not stage <span class="hljs-keyword">this</span> hunk or any of the later hunks <span class="hljs-keyword">in</span> the file
g - select a hunk to go to
/ - search <span class="hljs-keyword">for</span> a hunk matching the given regex
j - leave <span class="hljs-keyword">this</span> hunk undecided, see next undecided hunk
J - leave <span class="hljs-keyword">this</span> hunk undecided, see next hunk
k - leave <span class="hljs-keyword">this</span> hunk undecided, see previous undecided hunk
K - leave <span class="hljs-keyword">this</span> hunk undecided, see previous hunk
s - split the current hunk into smaller hunks
e - manually edit the current hunk
? - print help</pre> </div> </div> <p><span data-i18n="290d24db2c39012333cddfa306104aba5b75623381954f405698157dcfbfc673/58" data-source="After deciding the fate for all hunks, if there is any hunk that was chosen, the index is updated with the selected hunks." onmousemove="i18n(this)">&Pcy;&ocy;&scy;&lcy;&iecy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&icy;&yacy; &scy;&ucy;&dcy;&softcy;&bcy;&ycy; &vcy;&scy;&iecy;&khcy; &khcy;&acy;&ncy;&kcy;&ocy;&vcy;, &iecy;&scy;&lcy;&icy; &bcy;&ycy;&lcy; &vcy;&ycy;&bcy;&rcy;&acy;&ncy; &kcy;&acy;&kcy;&ocy;&jcy;-&lcy;&icy;&bcy;&ocy; &khcy;&acy;&ncy;&kcy;, &icy;&ncy;&dcy;&iecy;&kcy;&scy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &vcy;&ycy;&bcy;&rcy;&acy;&ncy;&ncy;&ycy;&mcy;&icy; &khcy;&acy;&ncy;&kcy;&acy;&mcy;&icy;.</span></p> <p><span data-i18n="d604e9462067dfa92609cc78cbbe7b5db6fc498c32a6a36795343bf5ffe45b2a/36" data-source="You can omit having to type return here, by setting the configuration variable &lt;code&gt;interactive.singleKey&lt;/code&gt; to &lt;code&gt;true&lt;/code&gt;." onmousemove="i18n(this)">&Vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &ncy;&iecy; &vcy;&vcy;&ocy;&dcy;&icy;&tcy;&softcy; &zcy;&dcy;&iecy;&scy;&softcy; return, &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&vcy; &dcy;&lcy;&yacy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>interactive.singleKey</code>  &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;  <code>true</code> .</span></p> </dd> <dt id="Documentation/git-add.txt-diff"><span data-i18n="df087996d45b03e7eb8c133c0298fd98d35113fca26aaba58612fef3cc212cad/68" data-source="diff" onmousemove="i18n(this)">diff</span></dt> <dd> <p><span data-i18n="de4a932dfbdea54768598e522e4f984be3a33f7dc1aa44bf0f3acaff7181c22b/2b" data-source="This lets you review what will be committed (i.e. between HEAD and index)." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &vcy;&acy;&mcy; &pcy;&rcy;&ocy;&scy;&mcy;&ocy;&tcy;&rcy;&iecy;&tcy;&softcy;, &chcy;&tcy;&ocy; &bcy;&ucy;&dcy;&iecy;&tcy; &zcy;&acy;&fcy;&icy;&kcy;&scy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ocy; (&tcy;. &iecy;. &mcy;&iecy;&zhcy;&dcy;&ucy; HEAD &icy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&ocy;&mcy;).</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_editing_patches"><span data-i18n="facfbb47db39801c2185eec4af3b299836f02d1a554c51b1e011671ccee1baf4/df" data-source="Editing patches" onmousemove="i18n(this)">Editing patches</span></h2> <div> <p><span data-i18n="31522930776e0468895839135485fc464386431f6e1c431662c43fcf47315e04/02" data-source="Invoking &lt;code&gt;git add -e&lt;/code&gt; or selecting &lt;code&gt;e&lt;/code&gt; from the interactive hunk selector will open a patch in your editor; after the editor exits, the result is applied to the index. You are free to make arbitrary changes to the patch, but note that some changes may have confusing results, or even result in a patch that cannot be applied. If you want to abort the operation entirely (i.e., stage nothing new in the index), simply delete all lines of the patch. The list below describes some common things you may see in a patch, and which editing operations make sense on them." onmousemove="i18n(this)">&Vcy;&ycy;&zcy;&ocy;&vcy;  <code>git add -e</code>  &icy;&lcy;&icy; &vcy;&ycy;&bcy;&ocy;&rcy;  <code>e</code>  &vcy; &icy;&ncy;&tcy;&iecy;&rcy;&acy;&kcy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &scy;&iecy;&lcy;&iecy;&kcy;&tcy;&ocy;&rcy;&iecy; &fcy;&rcy;&acy;&gcy;&mcy;&iecy;&ncy;&tcy;&ocy;&vcy; &ocy;&tcy;&kcy;&rcy;&ocy;&iecy;&tcy; &pcy;&acy;&tcy;&chcy; &vcy; &vcy;&acy;&shcy;&iecy;&mcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy;&iecy;; &pcy;&ocy;&scy;&lcy;&iecy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy; &icy;&zcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy;&acy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &kcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&ucy;. &Vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &vcy;&ncy;&ocy;&scy;&icy;&tcy;&softcy; &pcy;&rcy;&ocy;&icy;&zcy;&vcy;&ocy;&lcy;&softcy;&ncy;&ycy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy; &pcy;&acy;&tcy;&chcy;, &ncy;&ocy; &ucy;&chcy;&tcy;&icy;&tcy;&iecy;, &chcy;&tcy;&ocy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &mcy;&ocy;&gcy;&ucy;&tcy; &pcy;&rcy;&icy;&vcy;&iecy;&scy;&tcy;&icy; &kcy; &zcy;&acy;&pcy;&ucy;&tcy;&acy;&ncy;&ncy;&ycy;&mcy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&acy;&mcy; &icy;&lcy;&icy; &dcy;&acy;&zhcy;&iecy; &pcy;&rcy;&icy;&vcy;&iecy;&scy;&tcy;&icy; &kcy; &tcy;&ocy;&mcy;&ucy;, &chcy;&tcy;&ocy; &pcy;&acy;&tcy;&chcy; &ncy;&iecy;&vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy; &bcy;&ucy;&dcy;&iecy;&tcy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy;. &IEcy;&scy;&lcy;&icy; &vcy;&ycy; &khcy;&ocy;&tcy;&icy;&tcy;&iecy; &pcy;&ocy;&lcy;&ncy;&ocy;&scy;&tcy;&softcy;&yucy; &pcy;&rcy;&iecy;&rcy;&vcy;&acy;&tcy;&softcy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&yucy; (&tcy;. &iecy;. &ncy;&iecy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; &ncy;&icy;&chcy;&iecy;&gcy;&ocy; &ncy;&ocy;&vcy;&ocy;&gcy;&ocy;), &pcy;&rcy;&ocy;&scy;&tcy;&ocy; &ucy;&dcy;&acy;&lcy;&icy;&tcy;&iecy; &vcy;&scy;&iecy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &pcy;&acy;&tcy;&chcy;&acy;. &Vcy; &scy;&pcy;&icy;&scy;&kcy;&iecy; &ncy;&icy;&zhcy;&iecy; &ocy;&pcy;&icy;&scy;&acy;&ncy;&ycy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ocy;&bcy;&shchcy;&icy;&iecy; &vcy;&iecy;&shchcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &ucy;&vcy;&icy;&dcy;&iecy;&tcy;&softcy; &vcy; &pcy;&acy;&tcy;&chcy;&iecy;, &icy; &kcy;&acy;&kcy;&icy;&iecy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&icy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &icy;&mcy;&iecy;&yucy;&tcy; &dcy;&lcy;&yacy; &ncy;&icy;&khcy; &scy;&mcy;&ycy;&scy;&lcy;.</span></p> <div> <div> <div> <dl> <dt id="Documentation/git-add.txt-addedcontent"><span data-i18n="07c537ad904234f0c7990fda9e9980afbfc344304d06008ccb52c87b67d2ef9a/74" data-source="added content" onmousemove="i18n(this)">added content</span></dt> <dd> <p><span data-i18n="a5b256c1d3c59dfab8b0654c42a4923df3c44f356a496f676ab0c450e5382f36/2f" data-source="Added content is represented by lines beginning with &amp;quot;+&amp;quot;. You can prevent staging any addition lines by deleting them." onmousemove="i18n(this)">&Dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ycy;&jcy; &kcy;&ocy;&ncy;&tcy;&iecy;&ncy;&tcy; &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy; &scy;&tcy;&rcy;&ocy;&kcy;&acy;&mcy;&icy;, &ncy;&acy;&chcy;&icy;&ncy;&acy;&yucy;&shchcy;&icy;&mcy;&icy;&scy;&yacy; &scy;  &quot;+&quot; . &Vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&tcy;&icy;&tcy;&softcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&iecy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&khcy; &scy;&tcy;&rcy;&ocy;&kcy;, &ucy;&dcy;&acy;&lcy;&icy;&vcy; &icy;&khcy;.</span></p> </dd> <dt id="Documentation/git-add.txt-removedcontent"><span data-i18n="60c6987a5f61e0bfd14367c4c7c28425623d64068cf00a27898bede07ee259d1/8f" data-source="removed content" onmousemove="i18n(this)">removed content</span></dt> <dd> <p><span data-i18n="6789ee4403a0728aba6c4988971982ac73c285378c6de1a6b55cc633938c94dd/f0" data-source="Removed content is represented by lines beginning with &amp;quot;-&amp;quot;. You can prevent staging their removal by converting the &amp;quot;-&amp;quot; to a &amp;quot; &amp;quot; (space)." onmousemove="i18n(this)">&Ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy;&ocy; &scy;&tcy;&rcy;&ocy;&kcy;&acy;&mcy;&icy;, &ncy;&acy;&chcy;&icy;&ncy;&acy;&yucy;&shchcy;&icy;&mcy;&icy;&scy;&yacy; &scy;  &quot;-&quot; . &Vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&tcy;&icy;&tcy;&softcy; &icy;&khcy; &pcy;&ocy;&ecy;&tcy;&acy;&pcy;&ncy;&ocy;&iecy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&iecy;, &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ocy;&vcy;&acy;&vcy;  &quot;-&quot;  &vcy;  &quot; &quot;  (&pcy;&rcy;&ocy;&bcy;&iecy;&lcy;).</span></p> </dd> <dt id="Documentation/git-add.txt-modifiedcontent"><span data-i18n="4ccfac83d4aadc93c5d62a50cd894c4b213e3ab1d5654800a61356a70e0b1f37/e7" data-source="modified content" onmousemove="i18n(this)">modified content</span></dt> <dd> <p><span data-i18n="da2b96ab948e5f9480be701c28f82ae54e48dcb35cc37eeacb7e456fea734a04/aa" data-source="Modified content is represented by &amp;quot;-&amp;quot; lines (removing the old content) followed by &amp;quot;+&amp;quot; lines (adding the replacement content). You can prevent staging the modification by converting &amp;quot;-&amp;quot; lines to &amp;quot; &amp;quot;, and removing &amp;quot;+&amp;quot; lines. Beware that modifying only half of the pair is likely to introduce confusing changes to the index." onmousemove="i18n(this)">&Icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&ncy;&ycy;&jcy; &kcy;&ocy;&ncy;&tcy;&iecy;&ncy;&tcy; &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy; &scy;&tcy;&rcy;&ocy;&kcy;&acy;&mcy;&icy;  &quot;-&quot;  (&ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&iecy; &scy;&tcy;&acy;&rcy;&ocy;&gcy;&ocy; &kcy;&ocy;&ncy;&tcy;&iecy;&ncy;&tcy;&acy;), &zcy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&mcy;&icy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&tcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;  &quot;+&quot;  (&dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &zcy;&acy;&mcy;&iecy;&ncy;&yacy;&yucy;&shchcy;&iecy;&gcy;&ocy; &kcy;&ocy;&ncy;&tcy;&iecy;&ncy;&tcy;&acy;). &Vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&tcy;&icy;&tcy;&softcy; &pcy;&rcy;&ocy;&mcy;&iecy;&zhcy;&ucy;&tcy;&ocy;&chcy;&ncy;&ucy;&yucy; &mcy;&ocy;&dcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&yucy;, &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ocy;&vcy;&acy;&vcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;  &quot;-&quot;  &vcy;  &quot; &quot;  &icy; &ucy;&dcy;&acy;&lcy;&icy;&vcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;  &quot;+&quot; . &Pcy;&ocy;&mcy;&ncy;&icy;&tcy;&iecy;, &chcy;&tcy;&ocy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&ocy;&lcy;&ocy;&vcy;&icy;&ncy;&ycy; &pcy;&acy;&rcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&rcy;&icy;&vcy;&iecy;&scy;&tcy;&icy; &kcy; &zcy;&acy;&pcy;&ucy;&tcy;&acy;&ncy;&ncy;&ycy;&mcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;&mcy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&iecy;.</span></p> </dd> </dl> </div> </div> </div> <p><span data-i18n="cf6c81985220dbedaa9c7c50b457f697c228eb160ab3fb1d02f21dd85cb1be7f/4c" data-source="There are also more complex operations that can be performed. But beware that because the patch is applied only to the index and not the working tree, the working tree will appear to &amp;quot;undo&amp;quot; the change in the index. For example, introducing a new line into the index that is in neither the HEAD nor the working tree will stage the new line for commit, but the line will appear to be reverted in the working tree." onmousemove="i18n(this)">&Mcy;&ocy;&zhcy;&ncy;&ocy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&tcy;&softcy; &icy; &bcy;&ocy;&lcy;&iecy;&iecy; &scy;&lcy;&ocy;&zhcy;&ncy;&ycy;&iecy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&icy;. &Ncy;&ocy; &bcy;&ucy;&dcy;&softcy;&tcy;&iecy; &ocy;&scy;&tcy;&ocy;&rcy;&ocy;&zhcy;&ncy;&ycy;: &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &kcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&ucy;, &acy; &ncy;&iecy; &kcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy;&ucy; &dcy;&iecy;&rcy;&iecy;&vcy;&ucy;, &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&iecy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zcy;&icy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy;  &quot;undo&quot;  &pcy;&rcy;&icy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&icy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; &ncy;&ocy;&vcy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&jcy; &ncy;&iecy;&tcy; &ncy;&icy; &vcy; HEAD, &ncy;&icy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy;, &pcy;&rcy;&icy;&vcy;&iecy;&dcy;&iecy;&tcy; &kcy; &tcy;&ocy;&mcy;&ucy;, &chcy;&tcy;&ocy; &ncy;&ocy;&vcy;&acy;&yacy; &scy;&tcy;&rcy;&ocy;&kcy;&acy; &bcy;&ucy;&dcy;&iecy;&tcy; &pcy;&ocy;&dcy;&gcy;&ocy;&tcy;&ocy;&vcy;&lcy;&iecy;&ncy;&acy; &ZeroWidthSpace;&ZeroWidthSpace;&dcy;&lcy;&yacy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;, &ncy;&ocy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy; &ecy;&tcy;&acy; &scy;&tcy;&rcy;&ocy;&kcy;&acy; &bcy;&ucy;&dcy;&iecy;&tcy; &vcy;&ycy;&gcy;&lcy;&yacy;&dcy;&iecy;&tcy;&softcy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&iecy;&ncy;&ncy;&ocy;&jcy;.</span></p> <p><span data-i18n="1681ceb5833f1b33f2119c66aaf13716477369d2229f0add044787ee31cf0c64/aa" data-source="Avoid using these constructs, or do so with extreme caution." onmousemove="i18n(this)">&Icy;&zcy;&bcy;&iecy;&gcy;&acy;&jcy;&tcy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &ecy;&tcy;&icy;&khcy; &kcy;&ocy;&ncy;&scy;&tcy;&rcy;&ucy;&kcy;&tscy;&icy;&jcy; &icy;&lcy;&icy; &dcy;&iecy;&lcy;&acy;&jcy;&tcy;&iecy; &ecy;&tcy;&ocy; &scy; &ocy;&scy;&ocy;&bcy;&ocy;&jcy; &ocy;&scy;&tcy;&ocy;&rcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&softcy;&yucy;.</span></p> <div> <div> <div> <dl> <dt id="Documentation/git-add.txt-removinguntouchedcontent"><span data-i18n="7ef035009d87e891ca8b638ccf5b35d9dd0cb67e3adfb4132921b67659fbe808/47" data-source="removing untouched content" onmousemove="i18n(this)">&ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&iecy; &ncy;&iecy;&tcy;&rcy;&ocy;&ncy;&ucy;&tcy;&ocy;&gcy;&ocy; &kcy;&ocy;&ncy;&tcy;&iecy;&ncy;&tcy;&acy;</span></dt> <dd> <p><span data-i18n="76569f86d02ba2c54ce13e5f42fd4836afe3128e85bb2ae72fe1d38370373021/0d" data-source="Content which does not differ between the index and working tree may be shown on context lines, beginning with a &amp;quot; &amp;quot; (space). You can stage context lines for removal by converting the space to a &amp;quot;-&amp;quot;. The resulting working tree file will appear to re-add the content." onmousemove="i18n(this)">&Scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&iecy; &ncy;&iecy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&acy;&iecy;&tcy;&scy;&yacy; &mcy;&iecy;&zhcy;&dcy;&ucy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&ocy;&mcy; &icy; &rcy;&acy;&bcy;&ocy;&chcy;&icy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy;&mcy;, &mcy;&ocy;&zhcy;&iecy;&tcy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&acy;&tcy;&softcy;&scy;&yacy; &vcy; &scy;&tcy;&rcy;&ocy;&kcy;&acy;&khcy; &kcy;&ocy;&ncy;&tcy;&iecy;&kcy;&scy;&tcy;&acy;, &ncy;&acy;&chcy;&icy;&ncy;&acy;&yacy; &scy;  &quot; &quot;  (&pcy;&rcy;&ocy;&bcy;&iecy;&lcy;). &Vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &pcy;&ocy;&dcy;&gcy;&ocy;&tcy;&ocy;&vcy;&icy;&tcy;&softcy; &kcy;&ocy;&ncy;&tcy;&iecy;&kcy;&scy;&tcy;&ncy;&ycy;&iecy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &dcy;&lcy;&yacy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&yacy;, &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ocy;&vcy;&acy;&vcy; &pcy;&rcy;&ocy;&scy;&tcy;&rcy;&acy;&ncy;&scy;&tcy;&vcy;&ocy; &vcy;  &quot;-&quot; . &Pcy;&ocy;&yacy;&vcy;&icy;&tcy;&scy;&yacy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy; &dcy;&lcy;&yacy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy;&gcy;&ocy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&gcy;&ocy;.</span></p> </dd> <dt id="Documentation/git-add.txt-modifyingexistingcontent"><span data-i18n="7c2feba325a4112531a16f56cd813dd504aaa89bb21de2e30c5d9275a02d5e2d/1c" data-source="modifying existing content" onmousemove="i18n(this)">&icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&gcy;&ocy; &kcy;&ocy;&ncy;&tcy;&iecy;&ncy;&tcy;&acy;</span></dt> <dd> <p><span data-i18n="3b0ea46abeb89336be217f7084e38f8c3b3babea932ba6bff66b9f9241b0b566/e6" data-source="One can also modify context lines by staging them for removal (by converting &amp;quot; &amp;quot; to &amp;quot;-&amp;quot;) and adding a &amp;quot;+&amp;quot; line with the new content. Similarly, one can modify &amp;quot;+&amp;quot; lines for existing additions or modifications. In all cases, the new modification will appear reverted in the working tree." onmousemove="i18n(this)">&Mcy;&ocy;&zhcy;&ncy;&ocy; &tcy;&acy;&kcy;&zhcy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &kcy;&ocy;&ncy;&tcy;&iecy;&kcy;&scy;&tcy;&acy;, &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&vcy; &icy;&khcy; &ncy;&acy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&iecy; (&pcy;&ucy;&tcy;&iecy;&mcy; &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;  &quot; &quot;  &vcy;  &quot;-&quot; ) &icy; &dcy;&ocy;&bcy;&acy;&vcy;&icy;&vcy; &scy;&tcy;&rcy;&ocy;&kcy;&ucy;  &quot;+&quot;  &scy; &ncy;&ocy;&vcy;&ycy;&mcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ycy;&mcy;. &Acy;&ncy;&acy;&lcy;&ocy;&gcy;&icy;&chcy;&ncy;&ycy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; &lcy;&icy;&ncy;&icy;&icy;  &quot;+&quot;  &dcy;&lcy;&yacy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&khcy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&jcy; &icy;&lcy;&icy; &mcy;&ocy;&dcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&jcy;. &Vcy;&ocy; &vcy;&scy;&iecy;&khcy; &scy;&lcy;&ucy;&chcy;&acy;&yacy;&khcy; &ncy;&ocy;&vcy;&acy;&yacy; &mcy;&ocy;&dcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&yacy; &bcy;&ucy;&dcy;&iecy;&tcy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&acy;&tcy;&softcy;&scy;&yacy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy; &vcy; &ocy;&tcy;&mcy;&iecy;&ncy;&iocy;&ncy;&ncy;&ocy;&mcy; &vcy;&icy;&dcy;&iecy;.</span></p> </dd> <dt id="Documentation/git-add.txt-newcontent"><span data-i18n="fe32608c9ef5b6cf7e3f946480253ff76f24f4ec0678f3d0f07f9844cbff9601/db" data-source="new content" onmousemove="i18n(this)">new content</span></dt> <dd> <p><span data-i18n="b4c188e9d1c632cebaa0d9c7be7f45b2fa66c86122f9d4a0b044820f16ce1342/11" data-source="You may also add new content that does not exist in the patch; simply add new lines, each starting with &amp;quot;+&amp;quot;. The addition will appear reverted in the working tree." onmousemove="i18n(this)">&Vcy;&ycy; &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &dcy;&ocy;&bcy;&acy;&vcy;&icy;&tcy;&softcy; &ncy;&ocy;&vcy;&ycy;&jcy; &kcy;&ocy;&ncy;&tcy;&iecy;&ncy;&tcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &ncy;&iecy;&tcy; &vcy; &pcy;&acy;&tcy;&chcy;&iecy;; &pcy;&rcy;&ocy;&scy;&tcy;&ocy; &dcy;&ocy;&bcy;&acy;&vcy;&softcy;&tcy;&iecy; &ncy;&ocy;&vcy;&ycy;&iecy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;, &kcy;&acy;&zhcy;&dcy;&acy;&yacy; &icy;&zcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &ncy;&acy;&chcy;&icy;&ncy;&acy;&iecy;&tcy;&scy;&yacy; &scy;  &quot;+&quot; . &Dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&iecy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zcy;&icy;&tcy;&scy;&yacy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy; &vcy; &ocy;&tcy;&mcy;&iecy;&ncy;&iocy;&ncy;&ncy;&ocy;&mcy; &vcy;&icy;&dcy;&iecy;.</span></p> </dd> </dl> </div> </div> </div> <p><span data-i18n="d9d8e1ff213a2f7422d128c6c1cfe781dfa04fc84fb4b4f174cdd6bb40355897/cb" data-source="There are also several operations which should be avoided entirely, as they will make the patch impossible to apply:" onmousemove="i18n(this)">&IEcy;&scy;&tcy;&softcy; &tcy;&acy;&kcy;&zhcy;&iecy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&jcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &pcy;&ocy;&lcy;&ncy;&ocy;&scy;&tcy;&softcy;&yucy; &icy;&zcy;&bcy;&iecy;&gcy;&acy;&tcy;&softcy;, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &ocy;&ncy;&icy; &scy;&dcy;&iecy;&lcy;&acy;&yucy;&tcy; &ncy;&iecy;&vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ycy;&mcy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy; &pcy;&acy;&tcy;&chcy;&acy;:</span></p> <div> <ul> <li> <p><span data-i18n="9357706fd3bf220dd27db031ef83e9ae2c128ab21f2e2e75a2cf8b6f0910082f/22" data-source="adding context (&amp;quot; &amp;quot;) or removal (&amp;quot;-&amp;quot;) lines" onmousemove="i18n(this)">&dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &kcy;&ocy;&ncy;&tcy;&iecy;&kcy;&scy;&tcy;&ncy;&ycy;&khcy; ( &quot; &quot; ) &icy;&lcy;&icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&iecy; ( &quot;-&quot; ) &scy;&tcy;&rcy;&ocy;&kcy;</span></p> </li> <li> <p><span data-i18n="7a465f3f40286d328bb36109b29da7eb4005429dfdae8571702f503d1061563b/ba" data-source="deleting context or removal lines" onmousemove="i18n(this)">&ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&iecy; &kcy;&ocy;&ncy;&tcy;&iecy;&kcy;&scy;&tcy;&acy; &icy;&lcy;&icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&iecy; &scy;&tcy;&rcy;&ocy;&kcy;</span></p> </li> <li> <p><span data-i18n="38ee17b0c23fe5f41e2caf4e61525161e8ac2872f520dbcd56ea1d4aa6a0e692/bc" data-source="modifying the contents of context or removal lines" onmousemove="i18n(this)">&icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&gcy;&ocy; &scy;&tcy;&rcy;&ocy;&kcy; &kcy;&ocy;&ncy;&tcy;&iecy;&kcy;&scy;&tcy;&acy; &icy;&lcy;&icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&yacy;</span></p> </li> </ul> </div> </div> <h2 class="text-body-emphasis"  id="_configuration"><span data-i18n="b332c3492d5eb10a118eb6d8b0dcd689bc2477ce2ae16b303753b942b54377bc/aa" data-source="Configuration" onmousemove="i18n(this)">Configuration</span></h2> <div> <p><span data-i18n="5b8d919fa35b75aa925ebd5414ed6373e762fb0a087a062961c27b2ce9586555/57" data-source="Everything below this line in this section is selectively included from the &lt;a href=&quot;git-config&quot;&gt;git-config[1]&lt;/a&gt; documentation. The content is the same as what&amp;rsquo;s found there:" onmousemove="i18n(this)">&Vcy;&scy;&iecy;, &chcy;&tcy;&ocy; &ncy;&acy;&khcy;&ocy;&dcy;&icy;&tcy;&scy;&yacy; &ncy;&icy;&zhcy;&iecy; &ecy;&tcy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &vcy; &ecy;&tcy;&ocy;&mcy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy;, &vcy;&ycy;&bcy;&ocy;&rcy;&ocy;&chcy;&ncy;&ocy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ocy; &icy;&zcy; &dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;&tscy;&icy;&icy;  <a href="git-config.html">git-config[1]</a> . &Scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&ncy;&icy;&iecy; &tcy;&acy;&kcy;&ocy;&iecy; &zhcy;&iecy;, &kcy;&acy;&kcy; &icy; &ncy;&acy;&jcy;&dcy;&iecy;&ncy;&ncy;&ocy;&iecy; &tcy;&acy;&mcy;:</span></p> <div> <dl> <dt id="Documentation/git-add.txt-addignoreErrors"><span data-i18n="0bf71293388464d947f08b51313699483102b1135dcf737aa9b559c15dc12fe3/d8" data-source="add.ignoreErrors" onmousemove="i18n(this)">add.ignoreErrors</span></dt> <dt id="Documentation/git-add.txt-addignore-errorsdeprecated"><span data-i18n="ff937f924b057769d19a39c7893c5af38780bfa660f89e888dd8038b7b465827/8c" data-source="add.ignore-errors (deprecated)" onmousemove="i18n(this)">add.ignore-errors (deprecated)</span></dt> <dd> <p><span data-i18n="02c3c58154aa4b80d75464ce43bdf4bba82d2c5a110e47849985bd0884d38a35/ef" data-source="Tells &lt;code&gt;git add&lt;/code&gt; to continue adding files when some files cannot be added due to indexing errors. Equivalent to the &lt;code&gt;--ignore-errors&lt;/code&gt; option of &lt;a href=&quot;git-add&quot;&gt;git-add[1]&lt;/a&gt;. &lt;code&gt;add.ignore-errors&lt;/code&gt; is deprecated, as it does not follow the usual naming convention for configuration variables." onmousemove="i18n(this)">&Scy;&ocy;&ocy;&bcy;&shchcy;&acy;&iecy;&tcy;  <code>git add</code>  &pcy;&rcy;&ocy;&dcy;&ocy;&lcy;&zhcy;&acy;&tcy;&softcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &iecy;&scy;&lcy;&icy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &ncy;&iecy; &mcy;&ocy;&gcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&ycy; &icy;&zcy;-&zcy;&acy; &ocy;&shcy;&icy;&bcy;&ocy;&kcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy;&tscy;&icy;&icy;. &Ecy;&kcy;&vcy;&icy;&vcy;&acy;&lcy;&iecy;&ncy;&tcy; &ocy;&pcy;&tscy;&icy;&icy;  <code>--ignore-errors</code>  &dcy;&lcy;&yacy;  <a href="git-add.html">git-add[1]</a> .  <code>add.ignore-errors</code>  &ucy;&scy;&tcy;&acy;&rcy;&iecy;&lcy;, &tcy;&acy;&kcy; &kcy;&acy;&kcy; &ncy;&iecy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &ocy;&bcy;&ycy;&chcy;&ncy;&ocy;&mcy;&ucy; &scy;&ocy;&gcy;&lcy;&acy;&shcy;&iecy;&ncy;&icy;&yucy; &ocy;&bcy; &icy;&mcy;&iecy;&ncy;&acy;&khcy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&khcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;.</span></p> </dd> <dt id="Documentation/git-add.txt-addinteractiveuseBuiltin"><span data-i18n="6dd34577f65425295bf7502b820b3d32f1ab0d25e7d36c5b7f68755f3592edc7/11" data-source="add.interactive.useBuiltin" onmousemove="i18n(this)">add.interactive.useBuiltin</span></dt> <dd> <p><span data-i18n="f001835575babfbab12476ab7344af73dd8e5c3ef8c12d6ccaa9bfb9f053c112/e0" data-source="Unused configuration variable. Used in Git versions v2.25.0 to v2.36.0 to enable the built-in version of &lt;a href=&quot;git-add&quot;&gt;git-add[1]&lt;/a&gt;&amp;apos;s interactive mode, which then became the default in Git versions v2.37.0 to v2.39.0." onmousemove="i18n(this)">&Ncy;&iecy;&icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&mcy;&acy;&yacy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&acy;&yacy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;. &Icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &vcy; &vcy;&iecy;&rcy;&scy;&icy;&yacy;&khcy;  Git  &ocy;&tcy; 2.25.0 &dcy;&ocy; 2.36.0 &dcy;&lcy;&yacy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&yacy; &vcy;&scy;&tcy;&rcy;&ocy;&iecy;&ncy;&ncy;&ocy;&jcy; &vcy;&iecy;&rcy;&scy;&icy;&icy; &icy;&ncy;&tcy;&iecy;&rcy;&acy;&kcy;&tcy;&icy;&vcy;&ncy;&ocy;&gcy;&ocy; &rcy;&iecy;&zhcy;&icy;&mcy;&acy;  <a href="git-add.html">git-add[1]</a> , &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &zcy;&acy;&tcy;&iecy;&mcy; &scy;&tcy;&acy;&lcy; &rcy;&iecy;&zhcy;&icy;&mcy;&ocy;&mcy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &vcy; &vcy;&iecy;&rcy;&scy;&icy;&yacy;&khcy;  Git  &ocy;&tcy; 2.37.0 &dcy;&ocy; 2.39.0.</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_see_also"><span data-i18n="2fa97693b70fa87b95b2d1bdf9558e4ac65d5e82d145f13a03849c4d9c4957a9/40" data-source="See also" onmousemove="i18n(this)">See also</span></h2> <div> <p> <span data-i18n="4007b67ce5bb3d9fff7f111d418490f73f92131f9e2b8b183361c53c03f2bd23/1b" data-source="&lt;a href=&quot;git-status&quot;&gt;git-status[1]&lt;/a&gt;&lt;a href=&quot;git-rm&quot;&gt;git-rm[1]&lt;/a&gt;&lt;a href=&quot;git-reset&quot;&gt;git-reset[1]&lt;/a&gt;&lt;a href=&quot;git-mv&quot;&gt;git-mv[1]&lt;/a&gt;&lt;a href=&quot;git-commit&quot;&gt;git-commit[1]&lt;/a&gt;&lt;a href=&quot;git-update-index&quot;&gt;git-update-index[1]&lt;/a&gt;" onmousemove="i18n(this)"><a href="git-status.html">git-status[1]</a><a href="git-rm.html">git-rm[1]</a><a href="git-reset.html">git-reset[1]</a><a href="git-mv.html">git-mv[1]</a><a href="git-commit.html">git-commit[1]</a><a href="git-update-index.html">git-update-index[1]</a></span></p> </div><address>
<p>
    &copy; 2012&ndash;2024 Scott Chacon and others<br/>Licensed under the MIT License.<br/>
<a href="https://git-scm.com/docs/git-add">https://git-scm.com/docs/git-add</a>
</p>
</address>                </article>
            </main>

            <br>
            <br>
            <hr>

                            <ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6424571640879890"
     data-ad-slot="3954319254"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>            
        </div>

        <!-- -->

        <div class="col-md-3">
            <br>
            <form action="-index-.html">
                <div class="input-group">
                    <input class="form-control" type="search" name="q" placeholder="Search for Git" required>
                    <button class="btn btn-primary" type="submit">
                        <i class="bi bi-search"></i>
                    </button>
                </div>
            </form>
            <br>

                            <div class="list-group list-group-flush">
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-am.html">
                            git am                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-annotate.html">
                            git annotate                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-apply.html">
                            git apply                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-archimport.html">
                            git archimport                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-archive.html">
                            git archive                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-bisect.html">
                            git bisect                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-bisect-lk2009.html">
                            git bisect-lk2009                        </a>
                                    </div>
            
            <br>
            <div class="my-3">
                   <ins class="adsbygoogle"
        style="display:block"
        data-ad-format="autorelaxed"
        data-ad-client="ca-pub-6424571640879890"
        data-ad-slot="7867651344"></ins>
   <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
   </script>            </div>
            <br>

            
            
        </div>
    </div>
</div>    <!--/sse-->

    <footer>
        <br>
        <div class="container">
            <div class="row">
                <div class="col">
                    <hr>
                    <div class="row">
                        <div class="col-md-10">
                            <ul class="nav">
                                <li class="nav-item">
                                    <a class="nav-link ps-0" href="https://runebook.dev/">Help us Improve Translation</a>
                                </li>
                                                            </ul>
                        </div>
                        <div class="col-md-2 text-end">
                            <a href="git-add.html#" class="fs-5" aria-label="Top">
                                <i class="bi bi-arrow-up-square-fill"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
    </footer>
    <script src="../../../runebook.js"></script>
</body>

</html>